I want to display these 4 player wrapper divs as in a grid. I.e.
---------- ----------
|player 1| |player 2|
---------- ----------
---------- ----------
|player 3| |player 4|
---------- ----------
I want to display these 4 player wrapper divs as in a grid. I.e.
---------- ----------
|player 1| |player 2|
---------- ----------
---------- ----------
|player 3| |player 4|
---------- ----------
<!DOCTYPE HTML> | |
<html> | |
<body> | |
<div id="top_row"> | |
<div class="player_wrapper"> | |
<form><select></select></form> | |
<div class="player"><video></video></div> | |
</div> | |
<div class="player_wrapper"> | |
<form><select></select></form> | |
<div class="player"><video></video></div> | |
</div> | |
</div> | |
<div id="bottom_row"> | |
<div class="player_wrapper"> | |
<form><select></select></form> | |
<div class="player"><video></video></div> | |
</div> | |
<div class="player_wrapper"> | |
<form><select></select></form> | |
<div class="player"><video></video></div> | |
</div> | |
</div> | |
</body> | |
</html> |
I'd give the divs a class of
row
. They'd have a style like this:Then I'd have the player wrapper class look like this:
Might have to adjust the padding, to make sure it looks right, but that should do it.
If this isn't what you want, put it up on http://jsfiddle.net and then we can see the result.