DEV Community

loading...
Cover image for Common CSS properties

Common CSS properties

saqibs3291 profile image Saqib Suleman ・1 min read

With the help of CSS, we can style our HTML in any way we want. Most common properties of CSS that are used to style our content include background, background color, background image, background position, border, border style, border color, margin, padding, display, font size, font family, font weight, text align, text decoration, visibility, width etc. CSS units which can be absolute such as px and relative such as ems and rems also play an important role in understanding CSS.

Note: It is possible to add style to our markup right in the HTML file but it is not recommended, a separate style sheet should be made which can then be linked with our HTML file.

Discussion (0)

pic
Editor guide