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:
I can do everything required (I think) except that.Originally Posted by htmlcode
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:
I can do everything required (I think) except that.Originally Posted by htmlcode
<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>
float: left;
I'm guessing by your description that you mean.
Or perhaps:HTML Code:padding-left: 5px;
HTML Code:margin: 5px 5px 5px 5px;
Last edited by Encryptions!; 22-03-2006 at 04:42 PM.
Want to hide these adverts? Register an account for free!