Jump to content
Sign in to follow this  
glynt

remove white space on home page only

Recommended Posts

glynt

Hi all, I have a couple of websites (www.gt-images.net and www.in-focus-marketing.net) running Platfrom pro. I am using the following code in the custom CSS to remove some of the white space on the pages: #pagelines_content { margin-top: -30px; margin-bottom: -20px } However, I really only want to remove it on the home page, or perhaps have different settings for different pages. I've hunted around on here for a while and tried a few things but can't seem to work it out. Your expertise would be greatly appreciated!

Share this post


Link to post
Share on other sites
kastelic

View the source of any page and you will see classes in the body tag that are specific to that page, that then you can the prepend to your CSS rule like so:

.home #pagelines_content {
	margin-top: -30px;
	margin-bottom: -20px
	}
	
or
.page-id-34 #pagelines_content {
	margin-top: -30px;
	margin-bottom: -20px
	}

Share this post


Link to post
Share on other sites
glynt

Thanks Jimmy, That works perfect! Cheers, Glyn

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×