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?
6 Réponses
+ 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;
}
+ 7
no you can't, but you can do that by separating it with different class and id.
+ 3
Separate the lines in different elements like <p> or <div>
Give them separate id and assign their CSS separately.
+ 2
Do you mean 2 paragraphs with different background or font colors?
- 1
Meawo suka meowo