mssteph
12-08-2009, 11:27 PM
http://www.atlantis.com/default.aspx
in a 1024x768 browser, the scrolling banner, which is wider than the browser constraints, is always centered.
how is this achieved?
is it possible to achieve this with HTML/CSS? or do i have to use JS or PHP or anything else?
the site i'm working on now is almost identical to the atlantis site, structure-wise. i'm using a scrolling banner built using jquery (wider than 1024x768), with a jquery animated dropdown menu at the top, and an additional navigation overlay. lots of position:relatives and position:absolutes... lots and lots of layers and z-indexes. everything is centered on the page, but when i minimize the browser, the widest item bumps up against the left of the window. i want the widest part (the scrolling banner) to be equally centered on the page.
any help is much appreciated, thanks!
in a 1024x768 browser, the scrolling banner, which is wider than the browser constraints, is always centered.
how is this achieved?
is it possible to achieve this with HTML/CSS? or do i have to use JS or PHP or anything else?
the site i'm working on now is almost identical to the atlantis site, structure-wise. i'm using a scrolling banner built using jquery (wider than 1024x768), with a jquery animated dropdown menu at the top, and an additional navigation overlay. lots of position:relatives and position:absolutes... lots and lots of layers and z-indexes. everything is centered on the page, but when i minimize the browser, the widest item bumps up against the left of the window. i want the widest part (the scrolling banner) to be equally centered on the page.
any help is much appreciated, thanks!