Community Forums › Forums › Archived Forums › Design Tips and Tricks › Sidebar horizontal line without padding or margin – Balance
Tagged: balance theme, sidebar horizontal lines
- This topic has 8 replies, 2 voices, and was last updated 12 years, 11 months ago by
mariafernandez.
-
AuthorPosts
-
December 19, 2012 at 11:37 am #6220
mariafernandez
MemberI'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 #6262AnitaC
KeymasterI 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 #6269mariafernandez
MemberOn 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 #6277AnitaC
KeymasterOh, 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 #6361mariafernandez
MemberOutside? 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 #6363AnitaC
KeymasterAre 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 #6366AnitaC
KeymasterI 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 #6380mariafernandez
MemberOn 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 #6383mariafernandez
MemberOK. 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;
} -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.