Forums

Get help. Give help. A Web Design and Development Community.

want help related z-index;

  • # December 4, 2012 at 1:29 am

    I am making a project and don’t want to use “position” property but want to use “z-index” property , i am new to CSS please someone help me out…………..

    Harry_matharoo___________

    # December 4, 2012 at 1:54 am

    Not possible. Use relative positioning at the very least. But it really depends on your design and markup.

    div {
    position: relative;
    z-index: 1;
    }

    # December 4, 2012 at 3:22 am

    Z-index can’t perform with static positioning. Use anything else.

    # December 4, 2012 at 4:57 am

    This reply has been reported for inappropriate content.

    position: relative; will not have any impact on the layout unless you explicitly state a top/bottom/left/right on the element.

    Position relative by default just uses it’s natural position within the page as the starting point so I’m not sure why you want to avoid using it?

    # December 4, 2012 at 7:47 am

    Thanks for helping a newbie friends

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

You must be logged in to reply to this topic.

We have a pretty good* newsletter.