What are basic Properties in CSS?

Posted by

We have four basic propertues in CSS(Cascading style sheet)

  • Text Properties
  • List Properties
  • Border Properties
  • Font Properties

Text properties

PROPERTYDescription
color
Sets the color of a text
line-height
Sets the distance between lines
letter-spacingIncrease or decrease the space between characters
text-alignAligns the text in an element
text-decorationAdds decoration to text
text-indentIndents the first line of text in an element
text-transformControls the letters in an element

Border properties

  • boorder
  • border-bottom
  • border-bottom-color
  • border-bottom-style
  • border-bottom-width
  • border color
  • border left
  • border right

Font properties

  • font
  • font-size
  • font-family
  • font-style
  • font-variant
  • font-weight

List properties

  • list style
  • list-style-image
  • list-style-position
  • list-style-type
guest

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x