Форум АНТИЧАТ

Форум АНТИЧАТ (https://forum.antichat.xyz/index.php)
-   PHP, PERL, MySQL, JavaScript (https://forum.antichat.xyz/forumdisplay.php?f=37)
-   -   фон css (https://forum.antichat.xyz/showthread.php?t=185974)

+casper+ 11.03.2010 21:24

фон css
 
как в css сделать чтоб фоновая картинка не повторялась а один раз выводилась?

nuBo 11.03.2010 21:32

после сслыки на картинку !fixed
или background-repeat:no-repeat;

+casper+ 11.03.2010 21:44

у меня такое в css

Цитата:

html {
/*
background-color: #000000;
*/
background-image: url(http://4545545421antivirus/fon.jpg);
position:absolute;
top:0;
left:0;
margin:0;
padding:0;
width:100%;
height:100%;
z-index:-999;
}
где фиксед писать?

nuBo 11.03.2010 21:48

попробуй в поле position:

+casper+ 11.03.2010 21:56

Цитата:

position:!fixed;
повторяеться

WNZRS 11.03.2010 21:59

Код:

html {
background: url(http://4545545421antivirus/fon.jpg) no-repeat;
position:absolute;
top:0;
left:0;
margin:0;
padding:0;
width:100%;
height:100%;
z-index:-999;
}


nuBo 11.03.2010 22:02

Цитата:

Сообщение от +casper+
повторяеться

без !
опечатка... :rolleyes:

+casper+ 11.03.2010 22:54

WNZRS, спасибо))


Время: 06:00