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)
-   -   [SOLVED] Overriding post padding on one page (http://forum.bytesforall.com/showthread.php?t=16846)

jodybethw Feb 24, 2012 03:20 PM

[SOLVED] Overriding post padding on one page
 
I'd like to use 10px padding on all post containers except for the one on the front page in which there is a slider. I added
Code:

padding: 10px;
to Style Posts & Pages > POST Container (when it is taken out, the home page is aligned properly.) To override this on the home page, I put
Code:

body.page-id-724 td#middle {padding: -10px !important;}
in the Add HTML/CSS Inserts section. It isn't working and I have been staring too long. Can anyone see what I can't? Thank you!

http://www.neshamahyoga.com/v2/

juggledad Feb 24, 2012 04:04 PM

try this instead
HTML Code:

body.home td#middle {padding: -10px !important;}

jodybethw Feb 27, 2012 01:53 PM

Nope, it didn't help...any other ideas?

juggledad Feb 27, 2012 02:59 PM

just did a bit of google searching - padding can not be a negative number, so add the padding to all other pages as 10 and the home page as 0.

jodybethw Feb 27, 2012 03:30 PM

Just tried
Code:

body.home td#middle {
padding: 0px !important;
}

and also

Code:

body.page-id-724 td#middle {
padding: 0px !important;
}

...neither work. So frustrated. :(

juggledad Feb 27, 2012 04:41 PM

did you add padding to the rest? looks like you have it set to zero.

jodybethw Feb 27, 2012 04:57 PM

Yes, i did. I keep changing it because I'm working on other things -- sorry! I'll put it back in "error" mode so you can take a better look. I've also just colored the post container blue so you can see it on the page.

juggledad Feb 27, 2012 05:03 PM

try this
HTML Code:

body.page-id-724 div.post {
padding:0px !important
}


jodybethw Feb 27, 2012 05:11 PM

Brilliant! That worked, thank you! I have much more to learn, and now I know what to study!!! You're the best!


All times are GMT -6. The time now is 06:00 PM.

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