internet explorer 5 float headache

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default internet explorer 5 float headache

    I'm working on a website, and got everything working and looking the same in
    IE6, mozilla, firefox, Opera and netscape (latest versions of all browsers),
    BUT internet explorer 5 sometimes makes the pages move down (making them twice
    the size they should be).

    I made the site using div tags and css float for positioning.

    CSS:
    body {
    margin: 0px;
    padding: 0px;
    background-image: url(BG.gif);
    background-repeat: repeat-y;
    }
    a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-decoration:none;
    }
    a:link{
    color: #333333;
    }
    a:visited {
    color: #333333;
    }
    a:hover {
    color: #660066;
    }
    .kop1{
    text-indent:-20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 30px;
    font-weight: bold;
    color: #BBBBBB;
    }
    .kop2{
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #660066;
    }
    #container{
    /*position:absolute;*/
    float:left;
    left:0px;
    top:0px;
    width:760px;
    background-color: #CCCCCC;
    layer-background-color: #CCCCCC;
    background-image:url(overigImages/navBG.gif);
    background-repeat:repeat-y;
    z-index:1;
    }
    #top{
    float:left;
    width:760px;
    height:25px;
    background-image:url(overigImages/top.jpg)
    }
    #nav{
    float:left;
    width:340px;
    }
    #logo{
    float:left;
    width:205px;
    }
    #menu{
    float:left;
    }
    #content{
    float:left;
    width:375px;
    padding-left:20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #666666;
    }
    #footer{
    float:left;
    width:760px;
    }

    The site can be seen on:
    [url]http://www.wivern.nl/photoscreenlease/[/url]

    Does someone see what i'm doing wrong of what EI5 bug i need to kill?

    GhostXL Guest

  2. #2

    Default Re: internet explorer 5 float headache

    Ok , found da solution myself.
    It wa they call da "holy hack", u shoud give all objects an height.
    So i added:
    div {
    height: 1%;
    }
    And no more problem........... IE is one strange beast.
    GhostXL Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139