CharlieDigital
Banned
I think, for the first time, FF is doing something wrong that IE is doing right.
In IE and FF, "#right" floats to the right correctly.
In IE, "#left" floats to the left correctly. More importantly, it takes up the right amount of space and the text wraps under the right (if it's long enough).
In FF, "#left" tries to take up the full width of the "#container" and goes under #right. What gives?
Question one is probably "Why are you floating #left? It seems to behave correctly in IE and FF if you don't float #left". Well, that's true, BUT notice that the border spans the entire #container if you remove the float.
So CSS-GAF, help a brotha out here. The gist of it is that I'd like the content on the right to take up the remaining space and it should have a bottom border that spans only the available space.
Code:
<!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>
<title> new document </title>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<style type="text/css">
#container {
width: 400px;
height: 600px;
border: 1px solid #000;
position: relative;
}
#right {
float: right;
width: 200px;
height: 300px;
border: 1px solid red;
}
#left {
/*--- this breaks in FF... ---*/
float: left;
font-size: 10px;
border-bottom: 1px solid #000;
}
</style>
</head>
<body>
<div id="container">
<div id="right">
</div>
<div id="left">
<span>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eget sem augue, non pellentesque nisi. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Proin iaculis quam et velit facilisis vel iaculis odio viverra. Ut in lectus eu erat placerat sodales. Suspendisse potenti. Maecenas a mauris vitae est bibendum tristique. Nulla facilisi. Curabitur blandit metus id lacus gravida a pretium felis ullamcorper. Ut adipiscing ligula et nunc imperdiet suscipit. Nullam euismod sem vulputate enim ornare non porta urna tempor. Nam vulputate, nisi tristique tempor pretium, nunc ipsum malesuada purus, quis mollis urna arcu a augue. Nulla.
</span>
</div>
</div>
</body>
</html>
In IE and FF, "#right" floats to the right correctly.
In IE, "#left" floats to the left correctly. More importantly, it takes up the right amount of space and the text wraps under the right (if it's long enough).
In FF, "#left" tries to take up the full width of the "#container" and goes under #right. What gives?
Question one is probably "Why are you floating #left? It seems to behave correctly in IE and FF if you don't float #left". Well, that's true, BUT notice that the border spans the entire #container if you remove the float.
So CSS-GAF, help a brotha out here. The gist of it is that I'd like the content on the right to take up the remaining space and it should have a bottom border that spans only the available space.