CSS Tutorials

CSS – Basic Syntax

CSS stands for Cascading Style Sheets and is the language used to describe how HTML elements on a web page or printed page should be displayed and styled.

CSS Tutorials

CSS – Comments

CSS comments are used for notes in the style blocks, whether inline, in the document head, or an external file. Comments are not displayed in the browser.

CSS Tutorials

CSS – Opacity

The opacity of an element can be used to create effects such as elements fading in our out on hover, or changing opacity as a visual cue to the user.

CSS Tutorials

CSS – Padding

The CSS padding property gives an element space around its content, inside of any defined borders. The padding can be set for all four sides of the element.

CSS Tutorials

CSS – Margin

The CSS margin property gives an element space around its content, outside of any defined borders. The margin can be set for all four sides of the element.

CSS Tutorials

CSS – Outline

A CSS outline is a line that is drawn around elements, outside the borders, prior to the margin, to give the element additional visibility for the user.