Lesson 4, Intro To CSS and Inline CSS
Lesson 4, Intro To CSS and Inline CSS
CSS Property
Use to define a certain style to be changed i.e.
(background-color, font-family, font-size, width, height)
Inline Styles
May be used to apply a unique style for a single element.
Uses the “style” attribute to apply styles in an element.
CSS Property
Use to define a certain style to be changed i.e.
(background-color, font-family, font-size, width, height)
Text Properties
Property Description Values
Sets the color of a
color RGB, hex, keyword
text
Sets the distance normal, number,
line-height
between lines length, %
Increase or decrease
letter-spacing the space between normal, length
characters
Aligns the text in an left, right, center,
text-align
element justify
Adds decoration to none, underline,
text-decoration
text overline, line-through
Indents the first line
text-indent length, %
of text in an element
Controls the letters in none, capitalize,
text-transform
an element uppercase, lowercase
List Properties
Property Description Values
list-style-type, list-style-
Sets all the properties for a
list-style position, list-style-
list in one declaration
image, inherit
font-style Specifies the font style for text normal, italic, oblique, inherit
<body style="background-image:url(‘ITPC222.jpg');background-size:cover;">
</body>
</html>