Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Can’t get links to center

  • This topic is empty.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #46481
    Alaska
    Participant

    I can’t seem to get the links at the top, the “Contact About Facebook” links to center. The code might look a bit screwed up right now, as I am still playing with everything, and its not near complete, but I’ve tried idk how many things to get this centered.

    [Don’t judge too harshly, as I said, not near complete and still playing with the look.](http://www.miceonfire.com “”)

    #143368
    Senff
    Participant

    Add to .mainheader nav ul:

    padding-left: 0;

    #143370
    Alaska
    Participant

    Thank you so much. I could have sworn I tried that before… Maybe I added it to the wrong spot. I am still a scrub.

    #143372
    Paulie_D
    Member

    You really don’t need the float: left on

    .mainheader nav ul li

    since you already have `inline:block`

    also you don’t need the `margin: auto` as you have `text-align:center`

    You might also want to remove any default margin & padding from the ul & li. with a reset.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘CSS’ is closed to new topics and replies.