+ 1
In CSS, how do I make two different paragraphs different font sizes and colors?
When I do another setup, it's not doing anything to the HTML Output Text.
2 Answers
+ 15
Add class(es) or an Id to both of them. Remember, the ID's must be different (unique). For example :
<p id="para1">This is a paragraph</p>
<p id="para2">This is a paragraph</p>
Now, you're able to give them different properties using CSS :
#para1 {
font-color: red;
font-size: 12px;
}
#para2 {
font-color: green;
font-size: 20px;
}
0
Thanks!