IE6 float error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tader
    New Member
    • Sep 2007
    • 43

    IE6 float error

    hi so my error is like this this is the script
    [HTML]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Div's</title>
    </head>

    <style type="text/css">
    #main_box {
    width:400px;
    font-family:Verdana, Arial, Helvetica, sans-serif;
    font-size:10px;
    }

    .left_abox_el {
    width:8px;
    height:29px;
    background-image:url(image s/ab_left_top.png );
    background-repeat:no-repeat;
    margin:0px;
    float:left;
    }

    .rigth_abox_el {
    width:8px;
    height:29px;
    background-image:url(image s/ab_rigth_top.pn g);
    background-repeat:no-repeat;
    margin:0px;
    float:right;
    }

    .top_main {
    height:29px;
    background:url( images/ab_center_top.p ng);
    background-repeat:repeat-x;
    margin-left:8px;
    margin-right:8px;
    }

    </style>
    <body>

    <div id="main_box">
    <div class="left_abo x_el"></div>
    <div class="rigth_ab ox_el"></div>
    <div class="top_main "></div>
    </div>

    </body>
    </html>[/HTML]

    and this is my error



    so what should i do?
  • jamesicus
    New Member
    • Jul 2007
    • 37

    #2
    I might be able to help you if you post the URL.

    James

    Comment

    • Death Slaught
      Top Contributor
      • Aug 2007
      • 1137

      #3
      Try adding this.


      [CODE=css] * {
      margin:0;
      padding:0;
      }
      [/CODE]

      Put infront of your #main_box.

      Also move your CSS inside of your head tags. Like this.

      [HTML] <head>
      <style type="text/css">
      //CSS goes here
      </style>
      </head>
      [/HTML]

      Hope it helps, Thanks, Death

      Comment

      • tader
        New Member
        • Sep 2007
        • 43

        #4
        none of your posted answers didn't work ;( and sorry i don't have url i can give you link to zip file

        Code:
        http://rapidshare.com/files/86279929/alert.rar.html

        Comment

        Working...