All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

All Divs Position Relative

  • # December 19, 2009 at 6:58 pm

    OK here it is.

    I’m working on a site that was developed by someone else at some other point in time. I have run into a line of CSS code that makes me scratch my head.

    div {

    Is this a wise thing to do on a global level?

    Does this help any cross browser issues or is this a bad premise to a worse conclusion?

    I want to know your opinions, so please feel free to speak as candidly as you like.


    # December 19, 2009 at 11:14 pm

    I don’t see any particular problem with it. I don’t see it solving any big issues either though… What is the reasoning?

    # December 19, 2009 at 11:17 pm

    It is my understanding that the original author was attempting to induce the has layout property in IE to illuminate potential cross browser issue. What i’m concerned about is stacking orders and z-index conflicts that may arise.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed