.


:




:

































 

 

 

 


:

9

: . . .

: CSS HTML- , .

: HTML-c CSS -.

:

  1. ?
  2. ?
  3. ?
  4. margin.?
  5. ?
  6. 2 ? .
  7. z-?

:

1. HTML- . . .

:

, , (border), (padding), (margin).

 

border , . , , , . , border-top, border-bottom, border-left, border-right. : border-width - . border-style -
border-bottom , . , , , . : border-width - . border-style -
border-bottom-color .
border-bottom-style .
border-bottom-width . : thin - 2 medium - 4 thick - 6 ,
border-color . . border-color: color {1,4} , , , .
  - .
  - , .
  - , , .
  - , ,

 

border-left , . , , , .
border-left-color .
border-left-style .
border-left-width .
border-right , . , , , .
border-right-color .
border-right-style .
border-right-width .
border-style . . border-style. .
1 3 5 7
dotted dotted dotted dotted
dashed dashed dashed dashed
solid solid solid solid
double double double double
groove groove groove groove
ridge ridge ridge ridge
inset inset inset inset
outset outset outset outset

, , , . .

  - .
  - , .
  , = - , .
  - , , .

 

border-top-color .
border-top-style .
border-top-width .
border-width . .
  - .
  - , .
  - , , .
  - , , .

 

border-top , . , , , .
margin-top . p {margin-top: 10px;}
margin-right .
margin-bottom .
margin-left . :
  • - , . 0.
  • - ( ) ( ).
  • inherit - .
margin . . , . , , - . , , - , - . :
  • margin-top - .
  • margin-right - .
  • margin-bottom - .
  • margin-left - .
  • inherit - .
p {margin: 20px 30px 5px }
padding-top p {padding-top: 20px}
padding-right
padding-bottom
padding-left :
  • none - ( ).
  • - , . 0.
  • - ( ) ( ).
  • inherit - .
padding . . , . , , - . , , , - . :
  • padding-top - .
  • padding-right - .
  • padding-bottom - .
  • padding-left - .
  • inherit - .
h1{padding: 5px 5px 3px}
outline-width . . , . , , - . , , - , - . :
  • thin - .
  • medium - . ( )
  • thick - .
  • inherit - .
body{outline-width:10px 30px 5px }
outline-style . . , . , , - . , , - , - . :
  • none - .
  • dotted - .
  • dashed - .
  • solid - .
  • double - .
  • groove - .
  • ridge - .
  • inset - .
  • outset - .
  • inherit - .
body{ outline-style: double; }
outline-color . . , . , , - . , , - , - . :
  • invert - .
  • inherit - .
body{ outline-color:red; }
outline . . :
  • outline-width - .
  • outline-style - .
  • outline-color - .
body{outline: 1px solid red}

CSS HTML-.
CSS :

1. .

2. , .

position . :
  • static - , HTML- ( ).
  • relative - .
  • absolute - , .
  • fixed - , absolute, .
  • inherit - .
p {position: absolute}
bottom . position, relative ( ) absolute ( ). , (. 1), (. 2). . 1. bottom . 2. bottom .
left , , , (. 1). position. absolute, . relative, left . . 1. left  
right , , , (. 1). position. absolute, . relative, right . . 1. right p {top: 20px; right: 40px}
top , , , (. 1). position. absolute, . relative, top . . 1. top :
  • auto - , ( ).
  • - , .
  • - ( ) ( ).
  • inherit - .
z-index z-, . :
  • auto - , ( ).
  • - .
  • inherit - .
img {z-index: 3}

 

:



<== | ==>
| : . -
:


: 2016-03-28; !; : 310 |


:

:

. .
==> ...

1426 - | 1391 -


© 2015-2024 lektsii.org - -

: 0.016 .