Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Sep 2007
    Thanked 0 Times in 0 Posts

    CSS Z Index Problem

    have a class called .ask:

    .ask {
    position: relative;
    z-index: 1;
    top: 425px;
    left: 600px;

    I'm applying the class to this image:

    img src="images/ask-about-our.png" class="ask"

    I'm trying to place this image over other content on my web page.

    The problem is that I'm placing this image at the top of my html document and in the space where I have placed the image in the HTML there's a blank spot.

    The ask class positions the image where I want over my other content, but the spot where the image is placed originally in the html page is blank.

    Does anyone know how to get rid of this blank space?



  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    In a place far, far away...
    Thanked 1,043 Times in 1,019 Posts
    You need to use position:absolute; instead. When using position:relative; the space that the element took up without any positioning will still be there.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts