...

View Full Version : Display boxes inline



stfc_boy
10-19-2007, 10:02 PM
Hi All,

Sorry to be a pain, but have another question as well as i'm trying to learn css. On this link I have 3 div elements:

http://www.sloughtownfc.net/new_design/example2.php

And I want div elements x and y to sit in the container div alongside each other. How do I do this?

Thanks

Chris

Trapped
10-19-2007, 10:05 PM
add float:left to each CSS rule, that should fix it.

stfc_boy
10-19-2007, 10:20 PM
Thanks, but that does not seem to have fixed it (see url). Any other ideas?

Chris

PappaJohn
10-19-2007, 10:43 PM
The 'container' div does not need to be floated.

Either increase the width of 'container' or decrease the widths of 'x' or 'y' or set margins, paddings and borders for 'x' & 'y' to 0



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum