View Single Post
Old 5th September 06, 10:12 AM   #2
Nemus
WLC Lover
 
Nemus's Avatar
 
Join Date: Apr 2006
Location: Falköping, Sweden
Posts: 106
Default Re: Placing 2 DIVs side by side..

Hi!
Something like this should solve your problem.

Code:
div { width: 300px; border: 1px solid red; float: left}
and, in the html:

Code:
<div>Woho, first div!</div>
<div>And a second one!</div>
Setting the float to left will cause the element to float left as much as possible. That means the elements will be placed side by side.
__________________

To view links or images in signatures your post count must be 5 or greater. You currently have 0 posts.
Nemus is offline