I have a series of links at the top of my page (just under ad) but they are not centered. They were at one time, but I must have done something to screw it up. Hoping someone can help…
Thanks…
I have a series of links at the top of my page (just under ad) but they are not centered. They were at one time, but I must have done something to screw it up. Hoping someone can help…
Thanks…
your code may have MANY other bugs which may be playing havoc with your page, however I would guess this to be the issue
#navbar {
margin: 0 ;
padding: 0;
height: 1em; }
you should have: margin: 0 auto; and width: ( the width of you page here);
hope that helps
Dresden, I know my code stinks and is a hodgepodge…Took a few evening classes in html at a junior college about three years ago, and have been winging it ever since.
I am embarrassed but at the same time I am 72, and just can’t afford to take more classes.
I did try your suggestion and it didn’t make a difference… Thank you however for replying…you were the only one.
Hi again Barnum. Here’s what you could do:
In latest.html at line 133, change this:
#navbar {
margin: 0;
padding: 0;
height: 1em;
}
to this:
#navbar {
margin: 0;
padding: 0;
text-align: center;
}
Then at line 140, change this:
#navbar li {
list-style: none;
float: left;
}
to this:
#navbar li {
list-style: none;
display: inline-block;
}
As a final act, add this somewhere amid those styles:
#navbar li li {
display: block;
}