Forum Moderators: not2easy

Message Too Old, No Replies

DIV alignment

how to make 2 divs on same row

         

Gero_Master

4:48 pm on Feb 21, 2005 (gmt 0)

10+ Year Member



Im making my sites layout over... again. This time im using <DIV> instead of tables. How do i make it to make those 2-3 layers on same row. The FLOAT thing wont work, cause the layers must react to each other. It doesnt look good if content is over the bg layer.

BlobFisk

5:52 pm on Feb 21, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This would normally be done using floats (unless you want to go down the route of absolute positioning).

The 'reactiveness" is one of the advantages of using floats, combined with clear.

For example:

#div1 { float: left; }
#div2 { float: left; }

<div id="div1">Hello</div>
<div id="div2">World</div>

Should give you exactly what you are looking for...