I have the following html code:
<div class="content">
<p><table> <tr><td>sadsa</td><td>sadasdsa</td></tr></table></p>
<p><p><table> <tr><td>sadadsa</td><td>asdasasdsa</td></tr></table></p></p>
<form><table> <tr><td><input></td><td><input></td></tr></table>
</div>
And css code:
.content table tr td{
color: white;
padding: 3px;
border: 1px solid white;
}
The html <table>
can have any overlays and any numbers of them.
I need that my css works for all of them except when <form>
is the overlay.
In other words if .content
has child <form>
and <form>
has child <table>
my css shouldn't work. Between them can be other children / parents like <form><p><table>...</table></p></form>
etc.