Brackson
卍卍卍卍卍卍卍卍卍卍卍
I am trying to add a left and right box to centered container. Here's pretty much what I'm doing. Useless code has been removed (border, lorem ipsum, etc).
Here's my CSS.
Here's what I'm getting when I run this:
HTML:
<body>
<div id="leftbox">
<p>Lorem ipsum....</p>
</div>
<div id="rightbox">
<p>Lorem ipsum....</p>
</div>
<div id="container">
<div id="header">
<img src="images/logo.png">
</div>
<div id="navigation">
<ul>
<li><a href="/" class="selected">Home</a></li>
<li><a href="/about.html">About</a></li>
<li><a href="/contact.html">Contact Me</a></li>
<li><a href="/portfolio.html">Portfolio</a></li>
<li> </li>
</ul>
</div>
<div id="content">
<h1>Hello!</h1>
<p>Lorem ipsum....</p>
</div>
</div>
Here's my CSS.
Code:
#container {
width:750px;
margin: auto;
border:1px solid black;
}
#leftbox {
float:left;
width:200px;
margin-right:10px;
padding:10px;
}
#rightbox {
float:right;
width:200px;
margin-left:10px;
padding:10px;
}
Here's what I'm getting when I run this:
You must be registered for see links