PDA

View Full Version : CSS & HTML: Is it possible to make two side by side...


Wondering
09-25-2008, 12:00 AM
...div's (blocks of info) within 1 tr and 1 td? I am working with a website that is using a table to center all of the page content. I want to make seperate rows of information with 2 seperate blocks of info, side by side with space between, within each row. I've already tried seperating them into 2 seperate td's but because of the layout of the table one td ends up all the way on the other side of the screen. I like the idea of using the div's because I can specify a border and background color for each block of info - which is what I'm looking for - but I can't get each block to line up side by side with space between them. They [the blocks] just keep spanning the entire td width and are on top of each other. Is there something I can put into the css file to help this - like setting margins and padding or even changing something within the table itself?

Thanks in advance for any suggestions or advice!


I'm sorry I should have mentioned I'm using xhtml & html, plus working with a css file.

Brett F
09-25-2008, 02:59 AM
content content 2