hi all,
how can i get the "outerContainer" div to wrap its background around the two inner divs? currently they hang outside because of float:left;
essentially i'm trying for this layout using no tables:
[tt]
+------------------+
|+------+ +-------+|
|| | | ||
|| left | | right ||
|| | | ||
|+------+ +-------+|
+------------------+
[/tt]
=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }
how can i get the "outerContainer" div to wrap its background around the two inner divs? currently they hang outside because of float:left;
essentially i'm trying for this layout using no tables:
[tt]
+------------------+
|+------+ +-------+|
|| | | ||
|| left | | right ||
|| | | ||
|+------+ +-------+|
+------------------+
[/tt]
Code:
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
"[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml"[/URL] xml:lang="en" lang="en">
<head>
<title>test</title>
<style type="text/css">
#outerContainer {
background-color:#cccccc;
padding:5px;
}
#innerLeft, #innerRight {
background-color:#ffffff;
border:1px solid #ff0000;
padding:5px;
margin:5px;
float:left;
}
</style>
</head>
<body>
<div id="outerContainer">
<div id="innerLeft">innerLeft</div>
<div id="innerRight">innerRight</div>
</div>
</body>
</html>
=========================================================
-jeff
try { succeed(); } catch(E) { tryAgain(); } finally { rtfm(); }