html - How to apply css before child class -


i want apply css before p tag td. other td should not effected

<table width="100%" border="0" cellspacing="0" cellpadding="0">  <tr>   <td>heading</td>     <td>some data</td>       <td><p class="may-class">date</p></td>  </tr> </table> 

what sounds looking parent selector, css doesn't contain (yet...) http://css-tricks.com/parent-selectors-in-css/

what apply class td want style. if can't access html maybe can style p tag inside of td direct child selector:

td > p { ... } 

refer question ways style using javascript: is there css parent selector?


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -