Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test Page</title>
<style type="text/css">
#DivA
{ min-width: 71.08em;
background: #FFA500;
}
#DivA h1
{ font-size: 0.85em;
font-family: Verdana;
color: #000000;
text-align: right;
margin: 0 2.2em 0 0;
}
#DivB
{ min-width: 19em;
background: #FFA500;
border: none;
margin-left: 1.4em;
}
#DivB img
{ float: left;
margin: 0.9em 0.4em;
}
#DivB a:link, #DivB a:visited
{ color: #000;
text-decoration: none;
font-size: 0.85em;
font-family: Verdana;
}
#DivB a:hover
{ color: #000;
text-decoration: underline;
}
.topGap
{ line-height: 4em;
}
/*********************************************************/
#DivC
{ min-width: 71.08em;
padding: 0.5em 0 1.2em 0;
background: #FFD700;
border: none;
}
#DivC h1
{ line-height: 3em;
font-size: 0.85em;
font-family: Verdana;
color: #000000;
text-align: left;
margin: 0 0 0 3.4em;
}
#formID
{ width: 26em;
height: 2.16em;
margin: 0 0 0 27.5em;
}
#inputID
{ width: 17.50em;
height: 1.48em;
font-size: 1.12em;
font-family: Verdana;
}
#submitID
{ background-color: #FFA54F;
width: 5.50em;
height: 2.2em;
margin-left: 0.9em;
}
</style>
</head>
<body>
<div id="DivA">
<div id="DivB">
<a href="#"><img src="logo.gif" width="37"
height="38"/></a>
<p class="topGap"><a href="#"> home page </a> >
<a href="#">another directory </a></p>
</div>
<h1>
Sunday, November 20
</h1>
</div>
<div id="DivC">
<h1>Search this special directory for special things:</h1>
<form name="formID" id="formID">
<input type="text" name="inputID" id="inputID"
size="40"/>
<input type="button" id="submitID" value='SEARCH'/>
</form>
</div>
</body>
</html>
form,p, h1{margin:0}
#DivA{line-height:4em}
#DivA,#DivC{overflow:hidden}/* contain:floats*/
#DivB{float:left}
#DivC{clear:both}
#DivC h1{float:left}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Test Page</title>
<style type="text/css">
h1, h2, h3, h4, h5, h6, p, form {
margin:0;
padding:0
}
img { border:none }
a{color:#000;text-decoration:none}
a:hover { text-decoration: underline; }
body {
color:#000;
font-family:Verdana, Geneva, sans-serif;
}
#wrap {
min-width: 71.08em;
margin:auto;
overflow:hidden;/* use clearfix if you want visible overflow */
}
#header, #search {
background: #FFA500;
overflow:hidden;/* clear;floats*/
zoom:1.0;/* clear floats ie7 and under*/
padding:2em 1.5em;
clear:both;
}
#search { background: #FFD700; }
#header h1, #search h2 {
font-size: 0.85em;
font-family: Verdana;
color: #000;
float:right;
}
#search h2{
float:left;
margin:.5em 2em 0 0;
}
.logo {
float:left;
margin:-.5em 20px 0 0;
}
.breadcrumb .breadcrumb, .breadcrumb a:visited {
color: #000;
text-decoration: none;
font-size: 0.85em;
}
#inputID {
width: 17.50em;
height: 1.48em;
font-size: 1.12em;
font-family: Verdana;
}
#submitID {
background-color: #FFA54F;
width: 5.50em;
height: 2.2em;
margin-left: 0.9em;
text-transform:uppercase;
}
</style>
</head>
<body>
<div id="wrap">
<div id="header">
<h1>Sunday, November 20 </h1>
<p class="logo"><a href="#"><img src="logo.gif" width="37"
height="38"/></a></p>
<p class="breadcrumb"><a href="#"> home page </a> » <a href="#">another directory </a></p>
</div>
<div id="search">
<h2>Search this special directory for special things:</h2>
<form name="formID" id="formID">
<div>
<input type="text" name="inputID" id="inputID"
size="40"/>
<input type="button" id="submitID" value='Search'/>
</div>
</form>
</div>
</div>
</body>
</html>
Oh, hey. How long has <cite> been around? I can use that in ebooks.I don't want to hear "since 1998, you doofus"... Doofus?... haven't heard that in years. :)
Firstly, is it possible to explain the meaning and purpose of "overflow:hidden;/* use clearfix if you want visible overflow */" in #wrap.
Secondly, in both #header and #search you have "overflow:hidden;/* clear;floats*/" and "clear:both;". A lot of information on the net say that both "overflow:hidden;" and "clear:both;" are ways of clearing floats.