Category: CSS

CSS

CSS, which stands for Cascading Style Sheets, is a fundamental language used in web development to control the presentation and layout of web pages. It works in conjunction with HTML (Hypertext Markup Language) to define the visual appearance of elements on...

Text

The CSS Text property it is used for formatting the html page content. The Text properties are: color direction letter-spacing line-height text-align text-decoration text-indent text-shadow text-transform text-overflow unicode-bidi vertical-align white-space word-spacing Text example: <html> <head> </head> <body> The heading text. The...

Height and Width

The CSS Height and Width property it is used to set the height of a html element. Height and Width <style> div { height: 150px; width: 350px; background-color: #A7D71B; } </style> Height and Width example: <html> <head> </head> <body> <div class="x1">...

Padding

The CSS Padding property it is used to set the space between an html element border and the html element content. The padding values are: auto, length (px, pt, cm, em), %, inherit. The Padding properties are: padding padding-left padding-right padding-top...

Margin

The CSS Margin property it is used to set the space around an html element. The margin values are: auto, length (px, pt, cm), %, inherit. The Margin properties are: margin margin-left margin-right margin-top margin-bottom Margin example: <html> <head> </head> <body>...