Please help a divs- column question

Asked By 30 points N/A Posted on -
qa-featured
I was trying to create a page layout using divs I have placed the left column fine. Now I'm trying to place a box next to my left column. But it always moves to the bottom of the page.

 

SHARE
Answered By 0 points N/A #111433

Please help a divs- column question

qa-featured

I will try to explain you why that is happening to you. You need to see and understand all that structure as a box. Div is a "box" that is on the left or right side of it's container (it can be in some other div, of course). So, we can say that div is floated right or floated left. If you don't specify this your div (box) will go under the first one that you have on the left side. That's because if the structure is in a normal flow div uses the whole width of page and jumps to the next "row" below if not specified differently. When you use float : left css command for your div you will resolve the problem and the second div will float left on the first one. Good luck!

Related Questions