Evening folks,
I'm doing a website for a module at Uni and I'm having a little trouble just now. I'm trying to create a separate div for my left navigation that goes above the box to create a little login section, however, this happens when I try to add it:
I tried:
But that just does this (see right):
My CSS for my "leftnav" section:
Code:
/* Left Nav */
#leftnav {
padding: 0;
background: #DDD;
margin: 0 0 0 10px;
min-height: 50px;
height: 100%;
border: 1px solid #999;
float: left;
width: 180px;
}
#leftnavlogin {
padding: 0;
background: #DDD;
margin: 10px 0 0 10px;
min-height: 50px;
height: 100%;
border: 1px solid #999;
float: left;
width: 180px;
clear: both;
}
div.leftnavcontainer {
margin: 10px 10px 10px 10px;
background: #f4f4f4;
height: 100%;
}
My leftnav.php file:
Code:
<!-- Left column Section -->
<div id="leftnav">
<div class="leftnavcontainer">
<form name="search" action="search.php" method="get" class="form1">
<span class="leftnav">Search</span>
<table>
<tr valign="top">
<td align="left"><input type="text" name="searchTitle" title="Search for news articles" id="searchTitle" size="18" /></td>
</tr>
<tr valign="top">
<td align="left"> <input type="submit" name="submit" id="submit" value="Submit" />
</td>
</tr>
</table>
</form>
<p class="leftnav">Quick-Links</p>
<ul id="leftnavlist">
<li><a href="index.php">News</a></li>
<li><a href="./results.html">Results</a></li>
<li><a href="./fixtures.html">Fixtures</a></li>
<li><a href="./squad.html">Squad</a></li>
<li><a href="./images.html">Images</a></li>
<li><a href="./video.html">Video</a></li>
</ul><br />
</div>
</div>
<div id="leftnavlogin">
<div class="leftnavcontainer">
<p>Login BOX</p>
</div>
</div>
Apologies for any 'noobness' but asides from just starting the whole layout again, I'm a little lost just now.
Thanks for any help