View Single Post
Old 04-11-2017, 12:39 PM   #1
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 683
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
<p>-values within a table (not overridden by standard p)?

Can you set the values for <p> within a table in general, without the values being overridden by the standard <p> settings?


What I want:

css:
p { text-indent:3em; }
.tablep { text-indent:0em; }

html:
...
<td> <p class="tablep">bla bla</p></td>
...

But without having to set the class in the table-p.
(i.e.: <td> <p>bla bla</p></td>)


For values not in css-p, this works
td { something: value; }

But if it is in css-p, the value is ignored. Standard p-values seem to override.

Since the book has many tables I would like to skip adding the class everwhere if it's possible to set something that is enforced for all tables (they are all the same).


I have tried so many things and searched for hours... Hopefully I'm missing something obvious and you can help me out.
patrik is offline   Reply With Quote