Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I'm trying to set a conditional formatting for my custom list data row, it works fine for background color but not for foreground color, when I inspect the element in chrome browser, I found it apply the style correctly but because of style inherit from other style sheet (corev4.css), it couldn't work even though I appended " !important" into the conditional style . I don't want to format every column to achieve this simple work. Anyone have a workaround for this ? Any help will be appreciated

share|improve this question
add comment

1 Answer 1

You could reset the css class where the style is inherited and work with your or, better, create a custom css class and works with it.

If you have a div like this

<div class="firstClass secondClass thirdclass fourthclass"></div>

and you want change something in one of those css class you can create your css style sheet and then change the configuration

.firstClass { my-option: 3px !important; }
share|improve this answer
    
Can you expand on the solution a bit? –  April Drake May 22 '13 at 20:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.