Grow your CSS skills. Land your dream job.

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 {
    position:relative;
    }

    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.

    Cheers
    Bronson

    # 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.

*May or may not contain any actual "CSS" or "Tricks".