Community Forums › Forums › Archived Forums › Design Tips and Tricks › Help w CSS: remove stubborn site container padding
Tagged: custom css
- This topic has 13 replies, 2 voices, and was last updated 12 years ago by
AnitaC.
-
AuthorPosts
-
April 19, 2014 at 6:50 pm #101330
democracychronicles
MemberHelp w CSS: remove stubborn site container padding
my site: http://www.democracychronicles.com/
the margin above the title in grey should be 0. How can I do this? I can't figure it out or find the correct instruction
http://www.democracychronicles.com/April 19, 2014 at 6:58 pm #101335AnitaC
KeymasterAre you trying to flush it straight to the top?
Need help with customization or troubleshooting? Reach out to me.
April 20, 2014 at 1:14 pm #101500democracychronicles
Memberyes absolutely. that is my exact goal!
April 20, 2014 at 1:26 pm #101509AnitaC
KeymasterLook for this in your style sheet:
.site-containerchange the margin to this:
margin: 0 5px;
Need help with customization or troubleshooting? Reach out to me.
April 20, 2014 at 1:38 pm #101512democracychronicles
MemberI'm sorry but I didn't mention I use News Pro child theme. What you suggested didnt work also. I changed the section below to this:
/* Site Containers
--------------------------------------------- */.site-container {
background-color: #fff;
border: 1px solid #e3e3e3;
margin: 0 5px;
max-width: 1285px;
}.news-pro-landing .site-container {
max-width: 1285px;
margin: 0 5px;April 20, 2014 at 1:51 pm #101515AnitaC
KeymasterYou should only change it where I indicated. If you have any caching plugins activated - clear the cache.
Need help with customization or troubleshooting? Reach out to me.
April 20, 2014 at 1:57 pm #101517democracychronicles
Memberwhat you told me isnt working. The .site-container appears 7 times in the News Pro Theme: Stylesheet (style.css) and I assumed you meant there, in the place I posted.
April 20, 2014 at 1:59 pm #101518democracychronicles
MemberI refresh all caches everytime
April 20, 2014 at 2:07 pm #101519AnitaC
KeymasterIt looks like the original code I gave you worked, at least on my end in Firefox.
Need help with customization or troubleshooting? Reach out to me.
April 20, 2014 at 2:26 pm #101521democracychronicles
Memberwhere did you put the code? I really need help, can you elaborate?
April 20, 2014 at 2:28 pm #101522AnitaC
KeymasterI really don't understand why you don't see it. You placed the code in your theme, I see it there now.
margin: 0 5px;... is showing up there. You should clear the cache and your browser cache.
Need help with customization or troubleshooting? Reach out to me.
April 20, 2014 at 3:09 pm #101523democracychronicles
Memberok i learned something here. clearing my browser cache was something I never knew about. thanks
April 20, 2014 at 3:09 pm #101524democracychronicles
Memberok i learned something here. clearing my browser cache was something I never knew about. thanks
April 20, 2014 at 4:41 pm #101540 -
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.