Cosec
Cosec3y ago

✅ – Cosec – 16-19 Oct 5

how to have a css/js selector using both id and name?
5 Replies
Cosec
CosecOP3y ago
ok got it. It is by
#id[name="nameInthatID"] { //styling }
#id[name="nameInthatID"] { //styling }
reactibot
reactibot3y ago
This question has an answer! Thank you for helping 😄 If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1027253672645771336
ScriptyChris
ScriptyChris3y ago
Regarding id, it depends what specificity do you want. # gives the highest selector specificity, but if you do [id="some-id"] then whole selector will have lower specificity, because it will be ID vs attribute selector So #id[name="nameInthatID"] will get higher specificity than [id="id"][name="nameInthatID"]
Cosec
CosecOP3y ago
I see 🤔
reactibot
reactibot3y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1027253672645771336

Did you find this page helpful?