Results 1 to 4 of 4

Thread: positioning elements

  1. #1
    Join Date
    May 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default positioning elements

    I updated a old html with CSS.
    The page looks good in Fire Fox. In IE a block of text is about 20px high and the bottom 3" of the page is cut off.

    Hear is what I used:

    <div style="
    position:relative;
    top:120px;
    width:600px;
    height:40px;
    margin-left: auto;
    margin-right: auto;
    z-index:7 ">

    text

    </div>

    Anybody know why??

    Thanks to all who help.

  2. #2
    Join Date
    Jan 2007
    Posts
    629
    Thanks
    10
    Thanked 28 Times in 28 Posts

    Default

    Yeah, that is a problem. . . It's been on DD several times. . . See it you can learn any from this http://www.dynamicdrive.com/forums/s...ad.php?p=98551 or one of the other threads on the subject. The best thing to do is try something else, like a &#37; or em.
    --Jas
    function GreatMinds(){ return "Think Like Jas"; }
    I'm gone for a while, but in the meantime: Try using my FTP script | Fight Bot Form Submissions

  3. #3
    Join Date
    Jul 2007
    Location
    Sydney, Australia
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Try removing the height:
    <div style="position:relative; top:120px; width:600px; margin:0px auto; ">

    text

    </div>

    If you want the height either use: a higher setting or overflow:scroll.

    By the way z-index only works on absolute positioned elements it has no effect on relative position.

    Mark

  4. #4
    Join Date
    May 2007
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    removing the height did not help.

Bookmarks

Posting Permissions

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