Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to split a div into two columns as we split a table?

Tags:

html

css

I actually wanted the two grids in one div , I mean one grid in right, other in the left .....but for now the grid is appearing down. Its same as you split in a table with two rows !! same as that I need to split a div and add two grids side by side . Hope you get my point . Thanking you all in advance for your awesome support and replies

like image 795
ahmed Avatar asked Feb 07 '10 04:02

ahmed


Video Answer


1 Answers

Create two divs inside your main div

<div id="main">
<div id="left"></div>
<div id="right"></div>
</div>

With CSS, fix each one to the correct side

#left { float:left }
#right { float:right }
like image 185
Omar Abid Avatar answered Nov 08 '22 21:11

Omar Abid