[Theme: Mantra] How to center header logo? (4 posts)

  1. numt
    Posted 4 years ago #

    I'm using the Mantra theme on my MW3 clan website, http://www.clan-numt.co.uk and am trying to get the logo/header into the center.

    I'm go great expert with CSS so please make it idiot proof ;)

    Thank you for any advice

  2. sonic1243
    Posted 4 years ago #

    A few ways to do it, but for your case, currently you have:
    #branding {background: url(http://www.clan-numt.co.uk/wp-content/uploads/2011/11/NumT-banner21.png) no-repeat; width: 1100px; height: 120px;}

    Change to:
    #branding {background: url(http://www.clan-numt.co.uk/wp-content/uploads/2011/11/NumT-banner21.png) no-repeat; background-position: center; width: 1100px; height: 120px;}

    Or better short hand I think would be:
    #branding {background: url(/wp-content/uploads/2011/11/NumT-banner21.png) no-repeat center; width: 1100px; height: 120px;}

    Somet like that... I think you should google problems like that as its really a CSS thing not a wordpress thing... Spend less time gaming and more time coding ; )

  3. numt
    Posted 4 years ago #


    Sorry been away for a few days to London.

    Where do I find that code? Which file is it in?

    Did try Google first but not being any good at coding I couldn't an answer so I thought here would be best. Sorry if it's a common question.

  4. dbagini
    Posted 4 years ago #

    THANK YOU sonic1243!

    This has been bugging me all damn week and now it works (no-repeat center)

Topic Closed

This topic has been closed to new replies.

About this Topic