0
How can I select table in not() selector?
5 Respostas
+ 2
Do you mean to select just the table in the div, or everything else but the table? I think you need to clarify about this in your thread Description ☝
+ 1
Ipang :not() selector selects everything except it's argument,
That means I want to select everything except table
, but I failed to do this
+ 1
NUR ISLAM
Sorry, but as I understand it, we select multiple selectors, and use `:not` to exclude some of them.
I'm not clearly understanding what you want to do here. I'm not sure "everything" but the "table" is what you want to do here. Let's say you changed 'font-size' of the table, will it affect all the child of the table? the <tr>, <td> etc.?
+ 1
Want to change font size except table, such as p, section, ul. I use :not() selector here for practice purposes only. To learn how :not() selector work.
+ 1
NUR ISLAM
I'm not sure I can help with that. But I see you have a <tr class="trr"> in your code, so maybe this can help you see what `:not` pseudo class do
tr:not(.trr) /* all <tr> but those of .trr class */
{
background-color: yellow;
}