, . : . :
- ( 14 21 )
- ( 640480 16001200)
, . , , Macintosh 72 , Windows - 96 .
? 21 0.5 , 14 .
, 640480 3mm , 16001200 .
, . , . , . , 0.5 . , , , . . -, , -, , -, .
. 13 9 1024768 Windows, 96 . 96*2=192 . (768/9)*2=171 . : , - 192 , - 171 . , , 2,22 . .
, : CSS . , . , (, 300 4). .
, , , (pt). CSS . , (pt) (pc) . , , . 1/72 , 12 , 1/6 . , , . , , .
|
|
, , . , . , 16 , . . , 600dpi 16 0,03 , .
. , .
- ex, "x". , . , . "x", . "x" , .
, "x"? , . , - . , , . , -, .
ex , . , 25% , . , , , .
Internet Explorer 5.0 1ex 0.5em, , "" 0.3em, 0.6em. .
, . . 1 .
em | |
ex | x |
px | |
% |
, ( font-size). , , . 1em , . , em, . , em , 1em .
|
|
ex x . ex , em, , , , .
, , , . .
, , , . . 2 .
in | (1 2,54 ) |
cm | |
mm | |
pt | (1 1/72 ) |
pc | (1 12 ) |
, , , . , , 12. , . , . , , , , , . . 2 .
CSS:
font-family | , ; : serif ( , ""), sans-serif ( , ""), cursive (), fantasy (), monospace () | ||
font-size | , , xx-small,x-small, small, medium, large, x-large, xx-large, larger, smaller | medium | |
font-style | normal, italic (), oblique () | normal | |
font-weight | 100 900 ( 100), normal, bold, bolder, lighter | normal | |
font-variant | (, , ); | normal, small-caps () | normal |
font-stretch | , (expanded) (condensed) | normal, wider, narrower, ultra-condensed, extra-condensed, condensed, semi-condensed, semi-expanded, expanded, extra-expanded, ultra-expanded | normal |
font | , , : font-style, font-variant, font-weight, font-size, line-height, font-family |
font-family: { font-family: Arial, Helvetica, sans-serif }
font: { font: italic normal bold 20px Arial; }
CSS:
olor | |||
background-color | , transparent | transparent | |
background-image | URL / URI | ||
background-position | . . | , , left, top, center, right, bottom | 0% 0% ( ) |
background-attachment | , | scroll, fixed | scroll |
background-repeat | repeat - no-repeat - repeat-x - x repeat-y - y | repeat | |
background | background-color, background-image, background-position, background-attachment, background-repeat, , |
|
|
background:{ background: blue fixed no-repeat }
CSS:
text-indent | , ( ) | ||
text-align | left, right, center, justify | ||
text-decoration | none (), underline (), overline (), line-through (), blink () | none | |
text-shadow | none, , ; , : 1 2 3 - ; 1 - ; 2 - ; 3 - | none | |
letter-spacing | , normal | normal | |
word-spacing | , normal | normal | |
text-transform | none, capitalize ( ), uppercase ( ), lowercase ( ) | none | |
line-height | normal, , , ( ) | normal | |
white-space | normal, pre ( ), nowrap ( ) | normal | |
vertical-align | baseline - . bottom - . middle - . sub - ( ). super - ( ). text-bottom - . text-top - . top - . |
: { text-shadow: green 2px 3px 5px, red 5px; }
HTML
HTML : . - . H1-6, , DIV. , .
, , , .
<address>
<blockquote> .
|
|
<center> .
<div> .
<fieldset> .
<form> -.
<h1> .
<h2> .
<h3> .
<h4> .
<h5> .
<h6> .
<hr> .
<isindex> .
<menu> .
<ol> .
<p> .
<pre> .
<table> .
<ul> .
, , .. ( ) .
, CSS, . , .
HEIGHT - ;
WIDTH - ;
, CSS DIV. , .
, . ( , .), width, height; (padding), ; (border) (margin), .
:
- width , .. ;
- padding-left padding-right ;
- border-left border-right ;
- margin-left margin-right .
width , auto. , . , , .
Visibility. Overflow
Visibility , . , , , , . , display.
: visibility: visible | hidden | collapse | inherit
Visible .
Hidden , , .
Collapse , , hidden. collapse , , display: none. , , . Internet Explorer.
Inherit .
Overflow overflow , .
: overflow: auto | hidden | scroll | visible | inherit
Visible , .
Hidden , .
Scroll .
Auto .
Inherit .
:
, - . , , , , . . , .
|
|
. , , . , . - . , , . , .
, . , , . . , , . , , .
, , . , . . , , .
, , . , , .
, .
CSS, . , - .
, , .
, , . , . , , .
, , , table-layout.
, , . , , .. , -.