Hey folks, I am new to css after using tables in the past for layouts ? ..
What I am after is to be able to align the div “content” at the same height, but to the right of div “navigation” (the one with the league table in it).
Here is the page:
[url=”http://www.newsantosfc.co.uk/v2/test.php”]http://www.newsantosfc.co.uk/v2/test.php
Here is the concerning code:
[quote=html]
<div id=”navigation”>
<p>League Table<br /></p>
<?php
include (‘tables.php’);
?>
<p>Podium4Sport<br />
<a href=”_blank”> <img src=”p4s.gif” alt=”Podium 4 Sport.com” border=”0″ /></a></p>
<p>New Santos on Bebo <br /> <a href=”
</div>
<div id=”content”>
<table width=”600″ border=”0″>
<tr>
<td background=”back.gif”> <span class=”style2″>_ </span><span class=”style1″>Welcome to the website of New Santos Football Club</span></td>
</tr>
</table>
<br />
<p><span class=”style3″>Latest News </span><i><img src=”bebo.jpg” alt=”bebo” width=”134″ height=”150″ align=”right” /><br />
20/6/2008</i><br />
The Website is redesigned and updated!<br />
<br />
15/4/2008<br />
The clubs’ end of season awards were handed out last night in The Eg bar. The winners of the awards are:<br />
Simon Magee – Top Goalscorer<br />
Martin Cunningham – Clubman of the Year<br />
Martin Magee – Managers Player of the Year<br />
David Dougan – Player of the Year<br />
David Dougan – Young Player of the Year<br />
<br />
<a href=”news.php”>> Visit the News Page for more news.</a></p>
<table width=”608″ border=”0″>
<tr>
<td><img src=”nextmatch.gif” alt=”Next Match” width=”120″ height=”30″ border=”0″ /><br />
<i>19/04/08</i><br />
New Santos 1 – 0 Arydoyne WMC II<br />
<i> League Match 20 </i></td>
<td><img src=”lastmatch.gif” alt=”Last Match” width=”120″ height=”30″ border=”0″ /><br />
<p>Season Finished.</p>
</td>
</tr>
</table>
</div>
[quote=css]
#navigation {font-family:Arial; font-size:10px; color:#FF0000;margin-left:100px;width:150px;}
#content {position:relative; top:-350px; left:300px; width:600px;}
This code sets the content div too low (i.e. below the div on the left). How do I edit the properties to get it aligned properly? I don’t think I should be using relative positioning but I am not sure what to do next.
I also have a table within the “content” div, but I will make that 2 divs once I know how to align two divs side by side.
Cheers in advance people.