Nimrod EX
01 Apr 2009, 07:01 PM
Well, I'm working with dreamweaver, and it has detected 2 problems with my code.
"Floating non-float bug"
If a non-floated element with a specified width directly follows a left-floated element with a specified width, the non-floated container will appear to the right of the floated element instead of allowing the floated element to overlap it.
Affects: Internet Explorer 6.0, 7.0; Internet Explorer for Macintosh 5.2
Likelihood: Likely
and
"Float drop problem"
If a container (including the browser window itself) is not wide enough to accommodate both a float with a specified width and any content with a specified width that follows it, the content after the float will drop below the float rather than wrapping around it.
Affects: Internet Explorer 6.0, 7.0
Likelihood: Likely
It underlines only 1 line of text, the one I called "content_wrapper" (the Div tag linking to a certain CSS file), so I'll just post the CSS thingies that have something to do with the content_wrapper:
#wrapper {
width: 961px;
margin: 0px auto 0px;
padding: 0px;
}
#sidebar {
background:#d6d6d6;
float:left;
width:180px;
border-style:solid;
border-width:1px;
padding:5px;
}
#content_wrapper {
width: 953px;
margin: 0px auto 0px;
padding-left:7px;
padding-top:7px;
padding-bottom:20px;
}
#content_center {
float:right;
width:740px;
border-style:solid;
border-width:1px;
padding:5px;
}
Could somebody please tell me whats wrong? XD
(I'm not posting my HTML because I didn't put any text in there or anything, I'm just working on the layout right now.
"Floating non-float bug"
If a non-floated element with a specified width directly follows a left-floated element with a specified width, the non-floated container will appear to the right of the floated element instead of allowing the floated element to overlap it.
Affects: Internet Explorer 6.0, 7.0; Internet Explorer for Macintosh 5.2
Likelihood: Likely
and
"Float drop problem"
If a container (including the browser window itself) is not wide enough to accommodate both a float with a specified width and any content with a specified width that follows it, the content after the float will drop below the float rather than wrapping around it.
Affects: Internet Explorer 6.0, 7.0
Likelihood: Likely
It underlines only 1 line of text, the one I called "content_wrapper" (the Div tag linking to a certain CSS file), so I'll just post the CSS thingies that have something to do with the content_wrapper:
#wrapper {
width: 961px;
margin: 0px auto 0px;
padding: 0px;
}
#sidebar {
background:#d6d6d6;
float:left;
width:180px;
border-style:solid;
border-width:1px;
padding:5px;
}
#content_wrapper {
width: 953px;
margin: 0px auto 0px;
padding-left:7px;
padding-top:7px;
padding-bottom:20px;
}
#content_center {
float:right;
width:740px;
border-style:solid;
border-width:1px;
padding:5px;
}
Could somebody please tell me whats wrong? XD
(I'm not posting my HTML because I didn't put any text in there or anything, I'm just working on the layout right now.