Centering Sela side-bar widgets

  • Unknown's avatar

    Hello,

    I was wondering if it is possible to centre the widgets in the sidebar (particularly the text widgets, Facebook and upcoming events).

    Text widgets are off centre on any device and the Facebook and upcoming events widgets are off centre when viewed on mobile devices.

    I’m using the Sela theme.

    The site I need help with is: http://highweekvillagehall.org

    Thanks for your time,
    Lucy

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    The code for the Facebook widget comes from Facebook, and it is virtually impossible in most cases to change or restyle things in it. I tried a number of things and can’t get the content of the Facebook widget to center.

    To center the content in the Upcoming Events widget, add the following CSS.

    #upcoming_events_widget-3 {
        text-align: center;
    }
  • Unknown's avatar

    Actually, I now see I may well have misunderstood. Add the following at the end of your custom CSS and it centers the text widgets within the #secondary div when the sidebar moves to below the content.

    @media screen and (max-width: 849px) {
    	#secondary .widget {
    		text-align: center !important;
    	}
    	#facebook-likebox-2 iframe {
    		margin-left: auto;
    		margin-right: auto;
    	}
    }
  • Unknown's avatar

    Thank you – worked perfectly! Much appreciated!

  • Unknown's avatar
  • The topic ‘Centering Sela side-bar widgets’ is closed to new replies.