
What planned on doing was making each row into a list and having the other lists under it, each list having 3 items in it.
This is my code, but I feel this is a bad way of doing it, I got it perfect in one browser ( the browser built into komodoedit) then I went on google chrome and its not centred and there are 2 items per line! So is there a better way of doing this or how can I do it correctly this way? Thanks! This is how it turned out: http://electronicnat...onirontemplate/
HTML:
<div id="latestgames">
<h3>Latest Games</h3>
<ul>
<li><div id="game1">
<strong>Game Name <br />
Game info</strong>
</div></li>
<li><div id="game2">
<strong>Game Name <br />
Game info</strong>
</div></li>
<li><div id="game3">
<strong>Game Name <br />
Game info</strong>
</div></li>
</ul>
<ul>
<li><div id="game4">
<strong>Game Name <br />
Game info</strong>
</div></li>
<li><div id="game5">
<strong>Game Name <br />
Game info</strong>
</div></li>
<li><div id="game6">
<strong>Game Name <br />
Game info</strong>
</div></li>
</ul>
<ul>
<li><div id="game7">
<strong>Game Name <br />
Game info</strong>
</div></li>
<li><div id="game8">
<strong>Game Name <br />
Game info</strong>
</div></li>
<li><div id="game9">
<strong>Game Name <br />
Game info</strong>
</div></li>
</ul>
</div><!--end games-->
CSS:
#latestgames {
float: left;
background: #c4c4c4;
width: 475px;
margin-left: 30px;
}
#latestgames ul {
list-style: none;
margin-right: 35px;
margin-left: 35px;
}
#latestgames ul li {
float: left;
padding-left: 20px;
padding-right: 20px;
text-align: center;
}
This post has been edited by PixelBit: 20 July 2011 - 08:40 AM

New Topic/Question
Reply



MultiQuote









|