By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,988 Members | 1,476 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,988 IT Pros & Developers. It's quick & easy.

IE6 float error

P: 43
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.dtd">
<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(images/ab_left_top.png);
background-repeat:no-repeat;
margin:0px;
float:left;
}

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

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

</style>
<body>

<div id="main_box">
<div class="left_abox_el"></div>
<div class="rigth_abox_el"></div>
<div class="top_main"></div>
</div>

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

and this is my error



so what should i do?
Jan 24 '08 #1
Share this Question
Share on Google+
3 Replies


P: 37
I might be able to help you if you post the URL.

James
Jan 24 '08 #2

Death Slaught
100+
P: 1,137
Try adding this.


Expand|Select|Wrap|Line Numbers
  1.  * { 
  2. margin:0;
  3. padding:0;
  4. }
  5.  
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
Jan 24 '08 #3

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

Expand|Select|Wrap|Line Numbers
  1. http://rapidshare.com/files/86279929/alert.rar.html
Jan 24 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.