Dave Bilodeau Dave Bilodeau - 9 days ago 5
CSS Question

CSS style for only one table of two without selector tag

Here is the code that I have to work with.

<table width=600>Stuff here
<table>more stuff here
</table>
</table>


I cant change this code in any way. I can use CSS to affect this code however.

Therefore, how can I modify the width of table one without forcing a change on the child table?

table:first-child {width: 550px !important;}


Seems to set both table to 550px.

Answer

Find out what the parent element of the outer table is and use parent > table {}