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)

New User

5+ Year Member

joined:Feb 7, 2009
posts: 12
votes: 0

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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 8, 2006
votes: 0

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)

Junior Member

10+ Year Member

joined:Oct 10, 2006
votes: 0

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.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members