Forums

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

Home Forums CSS [Solved] Centering Footer Widgets

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #26926
    leehughes
    Member

    Hi guys..

    Av messed up my code trying to sort something out

    http://www.leehughes.co.uk

    as you can see the subfooter widgets are now on the left.. how do I move then center?

    Also you see the recent comments.. how can I space that out to make it look like the other two?

    Many thanks

    #67098
    TheDoc
    Member

    The reason the spacing isn’t the same is because instead of adding padding: 5px to the <li>, you’ve actually added it to the <a>, and the recent comments has another style overwriting it.

    REMOVE:

    #subfooter a {
    padding:5px;
    }

    ADD

    #subfooter li {
    padding: 5px;
    }

    #67099
    leehughes
    Member

    Ahh cheers Doc..

    All sorted, looks so much better.. Just need to centre it now :D

    #67100
    TheDoc
    Member

    It might not be the best way, especially if you’re going to add more widgets later on, but:

    REMOVE:

    #subfooter {
    display:inline; Not sure why this was there in the first place?
    }

    ADD:

    #subfooter {
    margin:0 auto;
    }

    CHANGE:

    #subfooter {
    width:720px;
    }

    #67101
    leehughes
    Member

    Ahhhh wicked.. normal service has presumed :D

    Cheers :D

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