0

How can I write two lines of different size with different color?

When I am using two commands in css then the last one is only followed for all the lines. Why so?

21st Aug 2017, 8:49 AM
Navneet Prabhat
Navneet Prabhat - avatar
5 Respuestas
+ 2
if your doing paragraphs if ur doing external css make sure your paragraph has a class. <p class="one">Paragraph one</p> and your second one <p class="two">Paragraph two</p> then separate these like so in you css document p.one { color:green background-color:gray; font-size:50px font-weight:bold; } p.two { color:red background-color:yellow; font-size:20px; font-weight:bold; }
21st Aug 2017, 9:20 AM
Tristen Alexander Diaz
Tristen Alexander Diaz - avatar
+ 7
no you can't, but you can do that by separating it with different class and id.
21st Aug 2017, 9:03 AM
Amethyst Animion
Amethyst Animion - avatar
+ 3
Separate the lines in different elements like <p> or <div> Give them separate id and assign their CSS separately.
21st Aug 2017, 9:00 AM
Dragon Slayer Xavier
Dragon Slayer Xavier - avatar
+ 2
Do you mean 2 paragraphs with different background or font colors?
21st Aug 2017, 9:00 AM
Calviղ
Calviղ - avatar
- 1
Meawo suka meowo
24th Aug 2017, 6:29 AM
fiskenb1