try w3schools quite gd.
try w3schools quite gd.
never ever ever ever use absolute positioningIt's bad
![]()
i used to be NintendoNews. visit my blog or add me on twitter.
need help with vista? i am a microsoft certified technology specialist in configuring windows vista and connected home integrator.. pm me for help!
"I am the way, the truth, and the life. No one comes to the Father except through me"
John 14:6 (NIV)
Seriously?! Noobs pls
Make a container and make left and right.
Code:#cont { width: 100%; overflow: hidden; } #left { width: 50%; float: left; } #right { width: 40%; float: right; }Code:<div id="container"> <div id="left">RICHARD OWNS PLS</div> <div id="right">TIS TRUE PLS</div>![]()
Use containers.![]()
Seriously?! Noobs pls
Make a container and make left and right.
Code:#cont { width: 100%; overflow: hidden; } #left { width: 50%; float: left; } #right { width: 40%; float: right; }Code:<div id="container"> <div id="left">RICHARD OWNS PLS</div> <div id="right">TIS TRUE PLS</div>RICHARD forgot to close his container div.Code:<div id="container"> <div id="left">RICHARD OWNS PLS</div> <div id="right">TIS TRUE PLS</div> </div>
Well.... for the code above... Floating the right hand side column is completely unessecary, as long as you set the right hand side margin to wider than the left column then it will automatically align itself beside it. So like example.....
So just to sum it up.... The left column is 50% wide, so we set the left margin of the right column to 52% that way it won't run into the left column and will align itself beside it.Code:#cont { width: 100%; overflow: hidden; } #left { width: 50%; float: left; } #right { margin: 0 0 0 52%; width: 40%; }
Note: the current columns don't line up beside each other in Maxthon/IE 6.
Want to hide these adverts? Register an account for free!