-

 -

  •     - - . : Internet Explorer 6, Fire Fox 1.5, Opera 9.5, Safari 3.1.1 JavaScript.

 -

   Net-man

 - e-mail

 

 -

 LiveInternet.ru:
: 20.04.2010
: 814
: 5985
: 11575

:


CSS: 10. - CSS

, 16 2010 . 16:52 +

 

CSS , -

 


  1. - CSS | -

  2. - CSS |


CSS -:







<head>

<title></title>

<style type="text/css">

body {

background-image:url(./images/cvetok.png);

background-repeat:no-repeat;

background-position:center 80px

}

</style>

</head>

<body>

<p> ,

.</p>

</body>


background-position (1- ) (2- ) -. - , 80px . background-position , : left, right, center, bottom, top.

 

: - CSS

 

- , , web-, <div> </div>.


CSS |

:

 







<head>

<title></title>

<style type="text/css">

body {

background-color:#66cc66

}

#name {

margin:0 auto;

width:550px;

height:300px;

padding:30px;

border:3px solid #ffff00;

background-color:#ffdd00;

background-image:url(./images/cvetok2.png);

background-repeat:no-repeat;

background-position:100px 100px;

color:#ffffff

}

</style>

</head>

<body>

<div id="name"> </div>

</body>

 

 


  • margin – .

  • margin:0 auto – .

  • padding – .

  • border – .

  • width – .

  • height – .

  • color – .

 

, : (0). x y. 100 100 -. ...

 

A margin, padding, border, width, height .

 

: CSS

 

<div> </div>, CSS, . , web-.

 

:

 







<head>

<title></title>

<style type="text/css">

body {

background-color:#66cc66

}

#name {

margin:0 auto;

width:550px;

height:300px;

padding:30px;

border:3px solid #ffff00;

background:#ffdd00 url(./images/cvetok2.png) no-repeat 100px 100px;

color:#ffffff

}

</style>

</head>

<body>

<div id="name"> </div>

</body>

 

:

 

background . :

 


  1. background-color

  2. background-image

  3. background-repeat

  4. background-attachment

  5. background-position

 

background, . background-attachment, .



ab-w.net


CSS
:  

1

: [1] []
 

:
: 

: ( )

:

  URL