What are basic Properties in CSS?

Posted by

Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOps School!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

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