Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove Padding on Landing Page Template
Tagged: Firebug, landingpage, stylesheet
- This topic has 8 replies, 2 voices, and was last updated 11 years ago by SMB-dev.
-
AuthorPosts
-
January 9, 2014 at 4:13 pm #84255CaseyKt2013Member
Hello,
I have a question about using the landing page template with the metro-pro theme. I don't want a big white area on top (where the header would normally be) - how can I get rid of it? This isn't normally how I would set up a site - but the page is temporary and I need to work with the design I've been given.
Here is the link: http://dsadvice.webcopyresults.com
Thanks!
http://dsadvice.webcopyresults.comJanuary 9, 2014 at 5:24 pm #84259SMB-devMemberYou need to modify the style sheet.
1. Open up the style.css in a text editor
2. Find the <div class="site-container">
3. Modify the Margin and Padding(s) to suite your taste.Margin Default is 32 px
Top Padding Default is 36 pxReducing these (2) variables will remove the "white border" area at the top.
If your using Firefox (install the Firebug plugin) then you can view this by Inspecting the Element and Layout of the Page
This also lets you make adjustments to test w/o affecting your code.Hope this helps.
“Life is Social” & “Social is the Lifeblood” of a Small Business Owner.
January 9, 2014 at 5:30 pm #84260CaseyKt2013MemberLet me try that again - I did try to reduce both to 2 px originally, but no luck…
(Sorry, I should have spelled out the edits I had tried already).
Let me see if I didn't save or something.
January 9, 2014 at 5:34 pm #84261CaseyKt2013MemberHere is the code:
/* Site Containers
--------------------------------------------- */.site-container {
background-color: #fff;
margin: 5px auto;
margin: 3.2rem auto;
max-width: 1140px;
overflow: hidden;
padding: 5px;
padding: 3.6rem;
}Wasn't sure if I needed to tweak the margin: 3.2rem auto and padding: 3.5rem as well?
January 9, 2014 at 6:01 pm #84265SMB-devMemberOK... I see your issue.
The Site container is Auto and that one line is controlling Top and Bottom Margins....which are both set to 3.2 REM (32 px)
If your ok with adjusting both the same, then reduce that value.Otherwise: You may need to remove the Auto and set your Margins independent. Top, Bottom, Left Right.
May need to adjust Padding REM the same way.
Hope this helps.
“Life is Social” & “Social is the Lifeblood” of a Small Business Owner.
January 9, 2014 at 6:06 pm #84267CaseyKt2013MemberI'm not sure I am following what you mean - can you please show how you would tweak it? (Am I only making changes to the code I provided above - or elsewhere? What values do you recommend I use and where?)
Thanks!
January 9, 2014 at 6:09 pm #84268CaseyKt2013MemberOkay, I made adjustments and it helped - but I still have a narrow band of white on top of the image. Could that be controlled by styling the landing page itself?
January 9, 2014 at 6:11 pm #84271CaseyKt2013MemberNevermind - caching issue - got it.
Thanks!!!!!
January 9, 2014 at 6:14 pm #84273SMB-devMemberGlad that fixed for you. Yeah the caching issue can catch you....it's bit me more times than I can count LOL
“Life is Social” & “Social is the Lifeblood” of a Small Business Owner.
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.