• I am using a child theme and I enter this code in to my style.css at my Appearance > Editor so that my my sidebar and main body content will touch each other

    .col-lg-12 {
    padding-left: 0px;
    padding-right: 0px;

    }

    This change works on firebug when i test it temporarily, but when i change it in wordpress..the code doesnt change and the actual appearance of the website doesnt change as well

    did i enter in the wrong code? why isnt my code changing when i try to edit it?

    site is: https://www.elogod.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Geoffrey Shilling

    (@geoffreyshilling)

    Volunteer Moderator

    I would use the classes of each section, primary and secondary, respectively. Does the following code work?

    #primary {
        padding-right: 0px;
    }
    
    #secondary {
        padding-left: 0px;
    }
    Thread Starter buttabrain

    (@buttabrain)

    yes it worked, thanks a lot…do u by any chance know why what i did didnt work?

    Geoffrey Shilling

    (@geoffreyshilling)

    Volunteer Moderator

    I’m glad to hear it worked! I’m very sorry for the delay in getting back about why the other code didn’t work.

    Your theme appears to be built using bootstrap – basically a way of breaking things up into grids. .col-lg-12 is typically a column/section of your website that spans the entire width of the page. While the #primary and #secondary sections are likely within that column, the CSS wasn’t quite specific enough to target them and have you do what you wanted.

    Does that make any sense?

    The codex has a page on finding your CSS styles that provides a little more in depth information on this.

    Please let me know if that doesn’t answer your question.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘margins wont change’ is closed to new replies.