PDA

View Full Version : Help Me!



YouFail
22-03-2006, 04:14 PM
I'm making my new site but I can't get the nav on the left and the content in the centre without it going down one line. Here's the code i'm using:



<HTML>
<HEAD>
<STYLE TYPE="text/css">

body {
background-color: #5f9ea0;
}

.nav {
background-color: #c0c0c0;
border: 1px dashed;
color: #cccccc
}

.content {
background-color: #c0c0c0;
border: 1px dashed;
color: #cccccc
}

</STYLE>
</HEAD>
<TITLE>Title Here</TITLE>
<div class="nav"><div align="left">
Links here
</div></div>
<center>
<div class="content"><div align="center">
Put content

</CENTER>
</HTML>


I can do everything required (I think) except that.

Sygon.
22-03-2006, 04:20 PM
float: left;

YouFail
22-03-2006, 04:22 PM
Thanks :)

YouFail
22-03-2006, 04:35 PM
One more thing : i need to float it so its not out at the edge of the page but near the content box. Any ideas?

Encryptions!
22-03-2006, 04:39 PM
I'm guessing by your description that you mean.


padding-left: 5px;

Or perhaps:


margin: 5px 5px 5px 5px;

Want to hide these adverts? Register an account for free!