is this sloppy code?

greg's picture

He has: 1,581 posts

Joined: Nov 2005

i have a css styled virtical navigation menu and want to be able to put it on the left of the page, have a border and align the links and headers, etc, make it look nice basically

i am trying to put a into a table, without much success
the only way i can get the style to remain is by doing the following code
it works, but it looks sloppy to me, like having to end all tr, td, ul and cal them again and my 'wireframemenu' class again

can someone let me know if i'm even on the right track for doing this?

<table border="5" width="200px" cellpadding="5">
<tr>
<td>
<h3>FIRST HEADER</h3>
</td>
</tr>

<tr>
<td>
<div class="wireframemenu">
<ul>
<li><a href="forumwithhost.php">Forum With Hosting</a></li>
<li><a href="forumwithouthost.php">Forum Without Hosting</a></li>
</ul>
</div>
</td>
</tr>

<tr>
<td>
<h3>SECOND HEADER</h3>
</td>
</tr>

<tr>
<td>
<div class="wireframemenu">
<ul>
<li><a href="trackerwithhost.php">Tracker With Hosting</a></li>
<li><a href="trackerwithouthost.php">Tracker Without Hosting</a></li>
</ul>
</div>
</td>
</tr>
</table>
'

also, using the above code in a table, how do i get my text next to the list?

and i have a top header with my company logo, image and then a horizontal navigation menu all in another table
is this standard practice? and how do i centralise the horozontal menu in a table cell> right and left work but middle or centre dont?
I seem to have picked up all the code, css, html etc but am now having trouble making all look nice on the page with tables

many thanks

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

I really don't think the tables should be necessary. Can you put this up somewhere so we can take a look at it?

greg's picture

He has: 1,581 posts

Joined: Nov 2005

changed the site and css now

so edited this to remove the link i provided

thanks

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.