• I am still quite new to WordPress, and am having a little difficulty getting something to work for me. I am using images for links in the sidebars, but the images are left aligned, and I would like them to be centered. I have searched the help sections, but cannot solve this problem. Can anyone point me in the right direction? Its probably really simple and easy to do, but it is annoying the life out of me!

    Many thanks in advance,

    Kris

Viewing 6 replies - 1 through 6 (of 6 total)
  • Site url?

    Thread Starter krisgibson

    (@krisgibson)

    Sorry, wasn’t sure if it would be allowed.

    http://canes88.x10hosting.com/kris

    I’m setting up this as a test site before we put it on the actual one.

    Try adding:

    .BlockContent-body img {
    	display: block;
    	margin-left: auto;
    	margin-right: auto;
    }

    to style.css

    I think you might catch more images then intended with that Esmi… it threw off the top block for me…

    The blogroll class is present on the ones that are to be targeted i think..

    This may be more suited.
    .blogroll li {text-align:center}

    Darn! I thought I’d checked for any other other instances of BlockContent-body. Problem with using the blogroll class is that it won’t cover images that might be added via another widget. The images in the top block could be reset using:

    .BlockContent-body #adboxes img {
    	display: inline;
    }
    Thread Starter krisgibson

    (@krisgibson)

    Thanks so much guys! I’ve went down esmi’s route and its worked a treat! Many thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Centering Images on Links Sidebar’ is closed to new replies.