Forum Moderators: not2easy
We have a 750px wide div with 6 links in them, each at 12px. When they are put on the page, they clutter together like normal text should: understandable. My solution to space them out was to add this in the css:
a {
other link properties up here;
text-align: center;
padding-right: 50px;
}
It spaces them out pretty well, however, they are not completely centered because the last link has a padding-right of 50px. I could just work around it by adding extra divs, but I am wondering if there is a cleaner way to center the links with spacing in between?
DE
I've got another question, this time concerning netscape 4 and links.
Say I have some code like this:
<div id="links">
<a href=".html">Link One</a>
<a href=".html">Link Two</a>
.... etc
</div>
and here is the relavent css:
#links a {
text-align: center;
margin: 0px 25px 0px 25px;
}
In IE and Opera, I get the effect I want, which is having the links horizontal right next to each other. But netscape 4 goes crazy and puts them vertical, right under each other. Any suggestions?
I agree with you, graham; I hate netscape and think they should discontinue it and make people upgrade... it is a total inconvenience since many css codes get distorted on it.
#links {
background-image: url(image.gif);
background-repeat: no-repeat;
width: 750px;
height: 20px;
}
#links a {
text-decoration: none;
font-weight: bold;
color: #FFFFFF;
font-size: 11px;
font-family: verdana;
display: inline;
margin: 0px 25px 0px 25px;
}