In very simple html/css, I have my menu in a <table id="menu">
. The menu has no border, however I would like all the other tables in my blog to have borders.
I made it work this way:
#menu, #menu th, #menu td {border: none; color: red}
table, th, td {border: 1px solid black;}
However this is not very robust. If I add something else to tables
I might forget to 'reset' it in #menu. Is there a way to force all properties in #menu so that I don't have to override one by one anything I would add to table, th, td {...}
?
I tried the :not()
selector but it doesn't feel robust either, I would rather specify what I want for menu on the #menu {...}
line, not elsewhere. Let me know if that makes sense or I can reformulate