...

View Full Version : How to center a javascript slideshow in a scaleable browser



spacex
06-20-2010, 05:15 PM
I'm trying to center a javascript fading-slideshow.

The javascript slideshow is 1100 pixels wide. I want it centered even if the visitor's resolution is 1024px wide or less, plus I want the website to not introduce a left-right scroll bar.

Is this possible?

Please see website: archivedepartment.com


Does anyone know if its possible?

Thanks,
spacex

fleewood
06-20-2010, 05:22 PM
it looks fine to me,i dont get any left to right scrollbars and it is always centered

spacex
06-20-2010, 05:32 PM
When the browser is less then 1100px wide, you should see a horizontal scrollbar. Also, the slideshow never breaks the left side of the browser, in order to stay centered.

I found this solution for still images: http://davejay.exit42design.com/entry/All/44/
It is describing the problem in details as well.

spacex
06-21-2010, 07:50 PM
The java script is in a DIV. Would I be able to do what I want, by somehow use the slideshow script as a background image?

.x



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum