How can I select table in not() selector? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I select table in not() selector?

https://code.sololearn.com/WA20tOf6dKij/?ref=app

14th Feb 2021, 1:38 PM
NUR ISLAM
NUR ISLAM - avatar
5 Answers
+ 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 ☝
14th Feb 2021, 2:24 PM
Ipang
+ 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
14th Feb 2021, 2:45 PM
NUR ISLAM
NUR ISLAM - avatar
+ 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.?
14th Feb 2021, 3:27 PM
Ipang
+ 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.
14th Feb 2021, 3:32 PM
NUR ISLAM
NUR ISLAM - avatar
+ 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; }
14th Feb 2021, 3:42 PM
Ipang