Forum Moderators: open
Some entries in the menu span two lines.
I am using line height spacing but I haven't been able to make a small gap between each entry.
There must be a way to do this - please tell me how!
thanks
the list adds bullets & indent which I don't want (but good idea)
I gather the table cell height is not supported by a lot of browsers - perhaps someone can confirm that?
I've currently added 1x1px image which works great for IE, spacing looks good, but it's ugly in FireFOx as it shows extra line which is too big.
Here is a bit of what I use on our church website, just enough to give you the idea. The nav links are in boxes down the left side, some have 2 lines of text in them. Margin sets the space above and below the box, padding the space in the box, border color makes it look like a button. The nav link boxes float against the right of the td, against a border image in the second td.
<STYLE TYPE="text/css">
.navclass A {
float:right;
height:auto;
width:112px;
margin-top:1px;
margin-bottom:1px;
border:1px solid;
border-color: #8888aa #222222 #222222 #8888aa;
font-weight:bold;
text-decoration: none;
padding-top:2px;padding-bottom:2px;
}
.navclass A:link {..text size, color, background color..etc...
}
.navclass A:hover {... change text and background color on hover....
}
.....etc....
</style>
<body>
<table><tr>
<!-- nav column is one TD -->
<td width="120" VALIGN="TOP" align="center">
<div class="navclass">
<a href="somepage.htm">Some Page</a><br>
<!-- more links here --><br>
</div>
</td>
<!-- nav border col 2 -->
<td width="30" valign="top" background="borderimage.jpg"> </td>
<!-- endborder col 2 -->
<!-- main col 3 -->
<td> all the page stuff here....
</td>
</tr>
</table>
the list adds bullets & indent which I don't want (but good idea)
Use CSS to remove the bullets and indents:
ul, li {
list-style-type: none;
margin: 0;
padding: 0;
}
Lists are really the "most correct" way to markup most navigation systems. After all, most navigation systems are simply lists of links. Therefore, an unordered list is normally the best option, semantically-speaking.
Banish all the <font> tags from your page to make the most lightweight of HTML markup, markup that will work in the widest array of browsers, be easier to maintain, will be portable to future document standards, and easier for bots to spider.