Jump to content
Sign in to follow this  
jager

Newbie CSS question - How to use custom CSS to ignore a style (not replace)

Recommended Posts

jager

Here's my problem: This is what's currently in style.css: .hentry table td, #comments table td { padding-bottom: 0.35em; padding-left: 0.6em; padding-right: 0.6em; padding-top: 0.35em; text-align: center; } I want it to actually be: .hentry table td, #comments table td { padding-bottom: 0.35em; padding-left: 0.6em; padding-right: 0.6em; padding-top: 0.35em; } If I put that into the custom.css, it still takes the "text-align: center" from style.css... I want the page to determine the td alignment - not an overriding decision for my entire site. Any clues how to do that? Am I making a bad assumption some where? All I know is if I don't edit style.css (apparently a no-no) and remove the "text-align:center" bit, all the tables on my site look pretty terrible :) If I do align it they look better. As a point of reference, I'm talking about: http://www.scarycow.com/signup/ Thanks! -Jager

Share this post


Link to post
Share on other sites
catrina

Why don't you try adding

text-align: left;
to replace
text-align: center;

in your Custom CSS code?


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

Share this post


Link to post
Share on other sites
jager

Thanks for the suggestion. Yep I tried it, that seemed to fix some problems but didn't fix other problems. It seems like no matter what CSS option I put there it breaks something somewhere else... whereas if it's completely removed, everything seems to render correctly.

Share this post


Link to post
Share on other sites
catrina

If it's really important, you can just remove text-align: center; from the style.css stylesheet. The reason why this is a no-no is because when you upgrade the theme, that stylesheet is going to be overwritten and you're going to lose the change you've made, so it's important for you to remember to add the change again after you update the theme.


Please read the docs before posting. Please do not private message me unless I ask you to.

Designer | Catrina Dulay

Founder | Catrina and Mouse

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  

×