I have an html page (index.html) and css page (styles.css) with various elements (including a table) and styles:
index.html:
<!DOCTYPE html>
<html>
<head>
...
<link rel="stylesheet" href="styles.css">
</head>
<body>
...
<table>
...
</body>
</html
styles.css:
...
*various styles*
...
I want to apply the pure[1] css styles to only the table (i.e. have all the styles.css styles apply, and then have any applicable pure styles override those of styles.css).
Something like this (so that the pure CSS doesn't influence any of the other elements):
index.html:
...
<table class="pure-table" css-src="https://unpkg.com/purecss@1.0.0/build/pure-min.css">
...
I haven't been able to find a way to do this feasibly. I know I could comb through the pure CSS file and copy/paste/tweak styles into styles.css until it looks similar, but seems like there should be a better way (some kind of locally scoped CSS).