I’m completely new to CSS, and confused as heck, and more or less just getting frustrated with floats, or positions, or anything like that. I’ll try and explain best I can
DIV1 DIV2
DIV3 DIV4
DIV5 DIV6 DIV7 DIV8
DIV9
DIV10
So that’s the layout i’m looking for. My trial and error’s are all messed up. I have Div1:float:left;div2:float:left
div3:clear. Everything works upto that point. I want div4 to go right beside div3, and then 5,6,7,8 to clear 3 and 4 and then go all beside eachother.
Any thoughts? I would say the hell with it and do fixed positions on everything, but that’s getting frustrating trying to figure out positions as well.
I’ve added in my code here. This has been messed, and played around with. I have height and width variables not because i need them, just playing around trying to make things fit
<style>
#div-1
{
float:left;
width:390px;
height: 170px;
}
#div-2
{
float:right;
text-align:right;
width:450px;
}
#div-3
{
width:80px;
height:60px;
clear:left;
text-align:left;
}
#div-4
{
border:dashed 2px;
float:left;
}
#div-5
{
float:left;
top:350px;
}
</style>
Here is your grid laid out for you, you can see where I added the floats/clears:
http://codepen.io/mastastealth/pen/xyeli
HTML:
CSS: