• blankpixelscg

    (@blankpixelscg)


    Hi guys. I’m redesigning my webcomic site and I can’t seem to find a way to center widgets and images in my sidebar. If anybody could help me with this, I’d be extremely grateful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Clayton James

    (@claytonjames)

    Generic answer for a style sheet that no one but you can see.

    Set the sidebar properties defined in your style sheet to direct the contents of the sidebar to be aligned center using the usual margin, padding and or text-align properties. I think images using the “text-align:center;” attribute may also need to use the “display:block;” attribute in order to get them to align correctly (sometimes…maybe).

    https://www.w3schools.com/css/

    shane-g

    (@shane-g)

    Hi,

    Provided steps are right. But you can do it from sidebar.php file of your current theme and set the alignment accordingly.

    Thanks,

    Shane G.

    Clayton James

    (@claytonjames)

    I may be off the mark on my thinking, but couldn’t placing css properties in sidebar.php be counter-productive? Although div id’s, classes and list elements are used to describe content in sidebar(s), isn’t the actual positioning and appearance of those elements (and their content), usually being controlled from the theme’s style sheet? (Time to get my books out again!)

    ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to Center Widgets in the Sidebar?’ is closed to new replies.