Dave Bilodeau Dave Bilodeau - 1 year ago 97
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download