Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

css position relative



6:06 am on Feb 27, 2009 (gmt 0)

5+ Year Member

I am using css position relative because I am floating my boxes but for some reason my marquee doesn't work right unless the position is set to absolute. And when I use the absolute the marquee messes up.


6:06 pm on Feb 27, 2009 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

we are going to need more than that to help you... CSS snippets and HTML snippets help....


9:13 pm on Feb 27, 2009 (gmt 0)

5+ Year Member

floats and position:absolute have no business being within miles of each other.

You should avoid position:absolute unless you know exactly what you are doing (and those who know what they are doing avoid using position:absolute altogether).

position:absolute gets its top/right/bottom/left positioning "relative" to the browser window. It ignores all html around it and actually takes itself out of the two dimensions of a flat html file.

position:relative simply allows you to designate a parent box that lets you force position:absolute element(s) relative to it (rather than the browser window).

No one uses position:absolute these day because it is uncontrollable, a cross-browser nightmare and not scalable/liquid/elastic/wrappable.

Floats are the proper way to create your wireframe CSS layout.


Featured Threads

Hot Threads This Week

Hot Threads This Month