I'm trying to make a sort of... games system, where people can post their games.
What I want to make is a simple system like this:
I figured the best way to do this would be divs:
So that creates one of the blocks.
But then I want there to be a row of these blocks, with a certain spacing between them. When they reach the end of the row (set by the user's window size) they'd go onto the next line.
I can't work out how to do this. The best I can get is them all on a seperate line (like so: http://forums.vengeance-rpg.com/index.php?page=11 )
I was wondering if anyone knows a way I can do this?
Also, small but related question, how do I centre the contents of a Div? I know <div align=center> will centre the while div on the page, but I just want the contents aligned within it.
What I want to make is a simple system like this:
http://img.photobucket.com/albums/v108/dudemaster/divs.png[/img]
I figured the best way to do this would be divs:
Code:
<div width="130" border="0" cellspacing="0" cellpadding="0">
<img src="http://www.vengeance-rpg.com/forums/Games/games_yourgame.PNG"><br>
Vengeance Online RPG<br>
by nx:media<br>
<br>
</div>
So that creates one of the blocks.
But then I want there to be a row of these blocks, with a certain spacing between them. When they reach the end of the row (set by the user's window size) they'd go onto the next line.
I can't work out how to do this. The best I can get is them all on a seperate line (like so: http://forums.vengeance-rpg.com/index.php?page=11 )
I was wondering if anyone knows a way I can do this?
Also, small but related question, how do I centre the contents of a Div? I know <div align=center> will centre the while div on the page, but I just want the contents aligned within it.