Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   Padding not showing on paragraph tags (http://forum.bytesforall.com/showthread.php?t=6054)

acdesigns Feb 26, 2010 01:40 PM

Padding not showing on paragraph tags
 
I'm new to Atahualpa and hope this question isn't too basic.

I've added some custom styles to CSS Inserts to create extra padding for some <p> tags, but it doesn't seem to show and I'm not sure why.

The custom padding attributes work on other tags such as <h1>, <h3> and <ol>, but not for <p> for some reason.

My website is http://mycarpaltunnelpregnancy.com/

For testing purposes, I've added the following custom style for the line "Dear Mum To Be,":
Code:

.bodypadding {
        padding-bottom: 2.0em;
}

<p class="bodypadding">Dear Mum To Be,</p>

And no matter what value I change the padding to, nothing changes on the page.

I'm running Atahualpa 3.4.6 and Wordpress 2.9.2.

Can someone advise on what the problem is?

juggledad Feb 26, 2010 02:59 PM

add !important to it so you have
HTML Code:

.bodypadding {
        padding-bottom: 2.0em !important;
}


acdesigns Feb 26, 2010 05:34 PM

Thanks heaps juggledad. It's working now.

Do you have any guidelines on when "!important" needs to be added to the style definitions?

juggledad Feb 27, 2010 06:30 AM

'!important' says 'use me even if another selector is more specific. Do a google search with 'css !important' and you can read the explainations in detail

here is one http://www.w3.org/TR/CSS2/cascade.html#important-rules


All times are GMT -6. The time now is 04:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.