+ 9

Help with CSS Selectors

https://code.sololearn.com/WJiiKjYuUs4Q/?ref=app There’s to bolds in there and I only want one of them to be changed in the css

17th Jan 2022, 8:03 PM
Junior
Junior - avatar
17 Respuestas
+ 6
HTML <label for="Name1" class="Information"> Information About You </label> CSS .Information { font-size: 25px; font-family: sans-serif; color: blue; font-weight: bold; }
17th Jan 2022, 8:35 PM
SoloProg
SoloProg - avatar
+ 4
What do you want???
17th Jan 2022, 8:19 PM
Solo
Solo - avatar
+ 4
As well as to any other tag by applying id or class. Or by specifying the name of the tag in which it is embedded, or its id, or class. Example: <label for="Information"> <b>Information About You</b> </label> <style> label[for="Information"] b {...} </style>
17th Jan 2022, 9:05 PM
Solo
Solo - avatar
+ 2
Didnt work SoloProg
17th Jan 2022, 8:40 PM
Junior
Junior - avatar
+ 1
Okay what if i it was text? Theb what would the css be? Solo
17th Jan 2022, 10:04 PM
Junior
Junior - avatar
+ 1
Maybe you will write yourself first, and I will appreciate how you understood my recommendation?
17th Jan 2022, 10:19 PM
Solo
Solo - avatar
+ 1
The fact of the matter is that you have not done anything yet, and I would like to see the result of our conversation.
17th Jan 2022, 10:24 PM
Solo
Solo - avatar
+ 1
I tested yalls things out they work but werent what i was looking for
17th Jan 2022, 10:25 PM
Junior
Junior - avatar
+ 1
Well, apply my recommendations to your code and change what you want. I even gave you a ready-made example of what your first line should look like.
17th Jan 2022, 10:41 PM
Solo
Solo - avatar
+ 1
Engulf your code with the span tag, and then attach the id to your span tag: An example: <center> <label for "Information"> <span id="somerandomid"> <b>Information About You</b> </span> </label> I'm sorry if I was late :)
18th Jan 2022, 6:41 AM
:DD
:DD - avatar
0
How do i select only one of the ‘bolds’ in css? Solo
17th Jan 2022, 8:21 PM
Junior
Junior - avatar
0
Like if i have <b>text</b> but another line has <b>text</b> how do i only change one of them in css
17th Jan 2022, 8:22 PM
Junior
Junior - avatar
0
? Did i do something? Solo
17th Jan 2022, 10:20 PM
Junior
Junior - avatar
0
Maybe my visual wasnt clear enough: https://code.sololearn.com/WJiiKjYuUs4Q/?ref=app look at the last line of the form thing thats what i want to change in my css
17th Jan 2022, 10:27 PM
Junior
Junior - avatar
0
Yeah the sad part is when i did that before it didnt’t work because of the text, im pretty sure it only works on attributs Solo
17th Jan 2022, 10:42 PM
Junior
Junior - avatar
0
Same when i do ‘::’
17th Jan 2022, 10:44 PM
Junior
Junior - avatar
0
Give ids
19th Jan 2022, 6:58 AM
Lakshay Kamat
Lakshay Kamat - avatar