Cascading Style Sheets CSS

Содержание

Слайд 2

Values - Colors Colors is either a keyword (e.g. white, red),

Values - Colors

Colors
is either a keyword (e.g. white, red), or

a numerical RGB notation.
A numerical RGB notation can be:
An RGB value in hexadecimal notation, which is a ‘#’ immediately followed by a 6 digit or 3 digit hexadecimal number E.g. #ff0000, #f00
An RGB value in functional notation E.g. rgb(255,0,0), rgb(100%,0%,0%)
Слайд 3

Values - Lenghts Lengths can be Relative em (font size of

Values - Lenghts

Lengths can be
Relative em (font size of the relevant font),

ex (x-height of the relevant font),
% etc.
Absolute
px *(pixels), in (inches), cm, mm, pt (points, =1/72 in), pc (picas, 1 pc = 12 pt)
Note: no space between number and length notation
Слайд 4

CSS Background Background-color : color; Background-image : url (‘URL’); Background-repeat :

CSS Background

Background-color : color;
Background-image : url (‘URL’);
Background-repeat : repeat-x,repeat-y, no-repeat;
Background-attachment :

fixed, local
Background-position : left top, left bottom, etc.
Background: red url(‘smiley.jpg’) no-repeat fixed 50% 50%;
Слайд 5

Box Properties margin : border : padding : content width &

Box Properties

margin :
border :