Archived

This topic is now archived and is closed to further replies.

  • 0

Top Margin


Question

Posted · Report post

Hi guys,

I tried searching on the form but with no success.

What I need to do is to write a simple css override on custom CSS code section form to reduce top margin to 0px.

Can you please help me? :(

 

Thanks

Share this post


Link to post
Share on other sites

12 answers to this question

Posted · Report post

OK!

 

In your custom CSS add the following:

body { margin-top: 0; }
#site .section-nav .content-pad { padding-top: 0; }

 

 

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

I apologise but I am not sure what you're referring to, top margin where ?

 

Can you provide more information please and also a link to your site.

Share this post


Link to post
Share on other sites

Posted · Report post

Sorry, you're right.

Imagine you have only the branding on you header. Now, on blow page, I see a space between the top of the page and the branding itself. How to remove that free space? 

Share this post


Link to post
Share on other sites

Posted · Report post

Hi,

 

I am not sure what you mean by blow page, are you referring to blog page ?

Also, can you please provide a link to your site, so I can see the issue first hand.

Share this post


Link to post
Share on other sites

Posted · Report post

http://www.rnsroma.it/

 

do you see those few pixel over the menu bar? I wish to remove that space.

Share this post


Link to post
Share on other sites

Posted · Report post

Yes!!

Share this post


Link to post
Share on other sites

Posted · Report post

You the man! It works.

Now tell me: what if I place the fixed navbar UNDER the branding, and I want to remove the space for the branding?

Share this post


Link to post
Share on other sites

Posted · Report post

The Fixed Navigation is not a section and its not possible to place it under the Branding section, you can place the NavBar section but the Fixed Nav will always be at the top of your site.

 

If the custom CSS I gave you causes an issue when you enable the Fixed, Navigation, then simply remove the CSS.

Share this post


Link to post
Share on other sites

Posted · Report post

Sorry, I meant NavBar, not Fixed Nav bar.

Share this post


Link to post
Share on other sites

Posted · Report post

Like I said, if the custom CSS causes an issue, simply remove it, but it should cause an issue.

Share this post


Link to post
Share on other sites

Posted · Report post

Ok, thanks mate.

Share this post


Link to post
Share on other sites