WordPress.org

Forums

Add Spacing Between Widgets (3 posts)

  1. bitesoutoflife
    Member
    Posted 1 year ago #

    Hi,

    I'm trying to add spacing between the widgets in my secondary sidebar (on the right), but whether I'm tweaking the padding or the margins, there's no change. Here's the CSS I currently have (in the structure section of the stylesheet):

    #sidebar-secondary {
    width:36%;
    margin:0px 0px 20px 0px;
    float:right;
    padding: 0 0 40px 0;

    What am I doing wrong? There's not a sidebar class in the stylesheet -- where would I add this in?

  2. bitesoutoflife
    Member
    Posted 1 year ago #

    Sorry, forgot to include -- blog is http://bitesoutoflife.com.

    Thanks!

  3. WPyogi
    Forum Moderator
    Posted 1 year ago #

    Try this:

    .sidebar .widget-container {
       margin-bottom: 30px;
    }

    Are you aware that any changes you make to theme files will be overwritten and lost when the theme is updated? You should be using a Child Theme for any changes to theme files -

    http://codex.wordpress.org/Child_Themes

Topic Closed

This topic has been closed to new replies.

About this Topic