+ 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
17 Respostas
+ 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;
}
+ 4
What do you want???
+ 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>
+ 2
Didnt work SoloProg
+ 1
Okay what if i it was text? Theb what would the css be? Solo
+ 1
Maybe you will write yourself first, and I will appreciate how you understood my recommendation?
+ 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.
+ 1
I tested yalls things out they work but werent what i was looking for
+ 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.
+ 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 :)
0
How do i select only one of the âboldsâ in css? Solo
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
0
? Did i do something? Solo
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
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
0
Same when i do â::â
0
Give ids