CSS Visual Rules : font-size
VISUAL RULES
Changing the typeface isn’t the only way to customize the text. Oftentimes, different sections of a web page are highlighted by modifying the font size.
To change the size of text on your web page, you can use the font-size property.
p {
font-size: 18px;
}
In the example above, the font-size of all paragraphs was set to 18px. px means pixels, which is one way to measure font size.
Instructions:
1.In style.css, set the font-size of paragraph (p) elements to 18 pixels.
Hint:
To set the font size of p elements, use the font-size property, and the value 18px.
selector {
property: value;
}
Comments
Post a Comment