Dave Bilodeau Dave Bilodeau - 4 months ago 42
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

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.


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