Ok, I'm a noob at CSS and now I want to experiment and self-teach myself.
How do I make a right and left column?
I have this:
http://www.xeoro.net/test/
+rep.
Printable View
Ok, I'm a noob at CSS and now I want to experiment and self-teach myself.
How do I make a right and left column?
I have this:
http://www.xeoro.net/test/
+rep.
Wouldn't you use layers/divs?
I am ?
<div align="right">
<div align="left">
<div style="position: absolute; left: AMOUNT OF PX AWAY FROM LEFT;"></div>
Edit that to help you like top: 0px; and left: 0px; and right: 0px;
What's that in pure css?
It would be
<div id="box"></div>
<style type="text/css">
#box{
position: absolute;
left: Amount of pixels like Myke said;
}
</style>
try w3schools quite gd.
never ever ever ever use absolute positioning :O It's bad :P
Seriously?! Noobs pls :P
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>
Thanks rich. <3
+rep to everyone else as well.
Use containers. :)
He did indeed.
[:
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.