Pierce McGeough
Pierce McGeough

Reputation: 3086

Creating a print css style sheet

I am looking to create a Print style sheet for a page where the data within a table is to be printed off. I've tried to use the :not selector to get all other elements on the page and remove them leaving the table. I thought the code below would work but it doesn't. Am I doing it wrong or does it just not work

not:(table){display: none;}

Upvotes: 1

Views: 102

Answers (1)

OneOfOne
OneOfOne

Reputation: 99215

Your selector is wrong, it's :not(table) { display: none; }

Check MDN

Upvotes: 4

Related Questions