• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Sidebar horizontal line without padding or margin – Balance

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Sidebar horizontal line without padding or margin – Balance

This topic is: not resolved

Tagged: balance theme, sidebar horizontal lines

  • This topic has 8 replies, 2 voices, and was last updated 12 years, 11 months ago by mariafernandez.
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • December 19, 2012 at 11:37 am #6220
    mariafernandez
    Member

    I'm trying to get the horizontal lines in my sidebar (http://www.spanish-bites.com/) to cover the whole sidebar width. So far I've failed with the changes I've made to my .css

    Can anyone suggest how this is achieved? I've seen it done on other blogs.

    Maria

     

    December 19, 2012 at 3:50 pm #6262
    AnitaC
    Keymaster

    I see a lot of lines and bars. Can you be more specific in the location possibly describing the text that is near what you want changed?


    Need help with customization or troubleshooting? Reach out to me.

    December 19, 2012 at 4:37 pm #6269
    mariafernandez
    Member

    On my blog's sidebar there's technically only one horizontal line, which gets repeated after each section. The social media icons, for instance, have a line above and below them.

    I'd like that bar to reach the edges of the white area, but I haven't found a way of doing it.

    Blog: http://www.spanish-bites.com

    Maria

     

    December 19, 2012 at 5:07 pm #6277
    AnitaC
    Keymaster

    Oh, I don't believe you can do that. The CSS is adjusting to the width of the sidebar. There's no way to get it go stretch outside of that area like that.


    Need help with customization or troubleshooting? Reach out to me.

    December 20, 2012 at 6:36 am #6361
    mariafernandez
    Member

    Outside? That would look ugly. What I want is what this other blog has done: http://www.janscarbrough.com/biography/

    (See sidebar lines reaching the edges, rather than covering only the same area as the text because of the padding)

    December 20, 2012 at 6:39 am #6363
    AnitaC
    Keymaster

    Are you referring to the the "sidebar" as in right sidebar where your search box is located?


    Need help with customization or troubleshooting? Reach out to me.

    December 20, 2012 at 6:41 am #6366
    AnitaC
    Keymaster

    I see now, because you have a white background I couldn't see it. I used Firebug and see that it's the left and right Margins, not the padding. So remove your left and right margins and it will fix it.

    **NEW NOTE** her Margins are set at 0.


    Need help with customization or troubleshooting? Reach out to me.

    December 20, 2012 at 7:22 am #6380
    mariafernandez
    Member

    On my .css I've tried changing to zero just about every margin and padding I can see. Nothing seems to work. The text moves to the edges every time. Perhaps you can give me a clue as to which margin you're referring to?

    Thanks.

    December 20, 2012 at 7:45 am #6383
    mariafernandez
    Member

    OK. I've now figured it out. In case there's someone else with the same problem, here's the solution:

    The original .css was:

    .sidebar .widget {
    border-bottom: 1px solid #ddd;
    margin: 0 0 30px;
    padding: 0 0 30px;
    }

    Now I have:

    .sidebar .widget {
    border-bottom: 1px solid #ddd;
    margin: 0 0 10px;
    padding: 20px 20px 20px;
    }

  • Author
    Posts
Viewing 9 posts - 1 through 9 (of 9 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble