CSS Flashcards
What is CSS means?
Cascading Style Sheet
Typically CSs file with an extension
.css
3 ways attached to CSS to Page:
1.) Inline Style Sheet
2.) External Style Sheet
3.) Internal Style Sheet
Best use to control Styling multiple pages.
External Style Sheet
Best control Styling one page.
Internal Style Sheet
Styling used directly with html tags
Inline Style Sheet
Made up of selector into declaration and variable.
CSS Rule
Often an element of a Html
Selector
Tells an html element how to display
Properties and Values
Group of the same selector with different declarations in one line.
Grouping Selectors
Comments in CSS (4):
Explain the purpose of the code
Help to read and understand your code
Serve as reminder to you
Start at /* ends in */
An unique and can only used once on the page.
ID
Can be use as much as needed
Classes
CSS Box Properties (7):
Background -color
Border-width
Border-style
Border-color
Margin
Padding
Width
Common CSS Layout Properties (7):
Width
Height
Float
Clear
Margin
Padding
Border