Jump to content
Sign in to follow this  
viveksweet

Selective font size color change

Recommended Posts

viveksweet

I managed to replace my site font through Cufon and it works great except for a few small problems. I'd like to change the size only the main body text. Not the navigation and inside the header etc. And I like to do the same thing but then with the font color. I researched the forum and couldn't find an answer that worked for me. I tried as well using firebug for finding the element etc but that just messed things up more.. what wold be the code to be selective only for the main body including header text? It's pretty frustrating if you don't know to much about this.. I really plan on learning more about it but don't have the time right now, just wanna get this baby live.. Any help would be greatly appreciated PS: I can't post a link because my site is offline Theme: Platform Pro this is the custom code I have right now:

	h1 {font-size:50px;}
	
	h2 {font-size:40px;}
	
	p {font-size:28px;}
	
	a {font-size:28px;}
	
	li {font-size:28px;}
	
	ul {font-size:28px;}

THX

Share this post


Link to post
Share on other sites
Kate

Hi Ben, When you say "main content", do you mean anything between the header and footer?

Share this post


Link to post
Share on other sites
timlinson

Add the `#maincontent .content` selectors to each rule.

Share this post


Link to post
Share on other sites
viveksweet

Tim, How would I place it?

p #maincontent .content {font-size:28px;}

I tried different ways but nothing works?

Share this post


Link to post
Share on other sites
cmunns

It would precede it like so: `#maincontent .content p {font-size:28px;}`

Share this post


Link to post
Share on other sites
viveksweet

Cmunns, Perfect! Thanks for that!

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  

×