CSS help

liunx

Guest
ok, i have this code on my page:<br />
<br />
<div align="center"><br />
<a href=http://www.htmlforums.com/archive/index.php/"index.html" class="nav">n e w s</a>&nbsp;<br />
<a href=http://www.htmlforums.com/archive/index.php/"index.html" class="nav">b a n d</a>&nbsp;<br />
<a href=http://www.htmlforums.com/archive/index.php/"index.html" class="nav">m e d i a</a>&nbsp;<br />
<a href=http://www.htmlforums.com/archive/index.php/"index.html" class="nav">t o u r</a>&nbsp;<br />
<a href=http://www.htmlforums.com/archive/index.php/"index.html" class="nav">p i c t s</a>&nbsp;<br />
<a href=http://www.htmlforums.com/archive/index.php/"index.html" class="nav">l i n k s</a>&nbsp;<br />
<a href=http://www.htmlforums.com/archive/index.php/"index.html" class="nav">g b o o k</a>&nbsp;<br />
</div><br />
<br />
for the class "nav" in my *.css that it refers to i have:<br />
<br />
a.nav:link {text-decoration: none;<br />
color: #FFFFFF;<br />
font-family: verdana;<br />
font-weight: bold;<br />
font-size: 10px;<br />
width: 60px;<br />
text-align: center;<br />
background: #000000;<br />
border: 1px dashed black;<br />
}<br />
<br />
as well as link, i have the same thing for active, visited, and hover<br />
<br />
now, my page doesnt show those thing in a line like this:<br />
<br />
news band media tour picts links gbook<br />
<br />
instead its like this:<br />
<br />
news<br />
<br />
band<br />
<br />
media<br />
<br />
tour<br />
<br />
picts<br />
<br />
links<br />
<br />
gbook<br />
<br />
can anyone offer help, maybe i messed up my css code!<!--content-->It is in ONE line.<br />
On my testpage:<br />
The style in the head and your links in the body.<br />
<br />
So check the css file.<br />
<br />
<br />
:rocker:<!--content-->What does <!-- m --><a class="postlink" href="http://jigsaw.w3.org/css-validator/validator-uri.html">http://jigsaw.w3.org/css-validator/validator-uri.html</a><!-- m --> have to say about the CSS ?<br />
<br />
[ It might be that the element thinks that it is a Block Level element and you will just have to declare it as an Inline Element instead. Hmm, yes, if each element is being centred, then they cannot all be on one line without some other fix. I think the center might be the problem ]<!--content-->giz, that's exactly right... good call!<!--content-->
 
Back
Top