jon.heitz
08-14-2008, 06:27 PM
Hi everyone,
Can someone help me with this?
I have a container div that contains several other divs. The container div has class "search". However it seems that after a "clear:both", the last div falls outside the border of the container div described by the "search" class. The (simplified) html is below.
Thanks for your help.
- jon
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search</title>
<style type="text/css">
.search {
background-color:#DEE7EC;
border-bottom-color:#8CACBB;
border-bottom-style:solid;
border-bottom-width:1px;
border-top-color:#8CACBB;
border-top-style:solid;
border-top-width:1px;
border-left-color:#8CACBB;
border-left-style:solid;
border-left-width:1px;
border-bottom-width:1px;
border-right-color:#8CACBB;
border-right-style:solid;
border-right-width:1px;
color:Black;
line-height:1.6em;
margin-bottom:0pt;
margin-left:0pt;
margin-right:0pt;
margin-top:0pt;
padding-bottom:0px;
padding-left:1px;
padding-right:1px;
padding-top:5px;
}
</style>
</head>
<body>
top
<div id="search">
<!-- begin simple search -->
<div id="simpleSearch" class='search'>
<div style="float:right" onclick="alert('perform simple search');">
<img src="xmag-22.png"/>
</div>
<div style="float:right">
<input id="search" type="text" value="search"></input>
</div>
<div style="clear:both"></div>
<div style="font-size:8pt; float:right">
<div>Advanced search</div>
</div>
</div>
</div>
<div style="clear:both"></div>
bottom
</body>
</html>
Can someone help me with this?
I have a container div that contains several other divs. The container div has class "search". However it seems that after a "clear:both", the last div falls outside the border of the container div described by the "search" class. The (simplified) html is below.
Thanks for your help.
- jon
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search</title>
<style type="text/css">
.search {
background-color:#DEE7EC;
border-bottom-color:#8CACBB;
border-bottom-style:solid;
border-bottom-width:1px;
border-top-color:#8CACBB;
border-top-style:solid;
border-top-width:1px;
border-left-color:#8CACBB;
border-left-style:solid;
border-left-width:1px;
border-bottom-width:1px;
border-right-color:#8CACBB;
border-right-style:solid;
border-right-width:1px;
color:Black;
line-height:1.6em;
margin-bottom:0pt;
margin-left:0pt;
margin-right:0pt;
margin-top:0pt;
padding-bottom:0px;
padding-left:1px;
padding-right:1px;
padding-top:5px;
}
</style>
</head>
<body>
top
<div id="search">
<!-- begin simple search -->
<div id="simpleSearch" class='search'>
<div style="float:right" onclick="alert('perform simple search');">
<img src="xmag-22.png"/>
</div>
<div style="float:right">
<input id="search" type="text" value="search"></input>
</div>
<div style="clear:both"></div>
<div style="font-size:8pt; float:right">
<div>Advanced search</div>
</div>
</div>
</div>
<div style="clear:both"></div>
bottom
</body>
</html>