HTML/CSS/CSS Attributes and Javascript Style Properties/background position y

Материал из Web эксперт
Перейти к: навигация, поиск

"background-position-y" Example

    
<html>
<head>
</head>
<body>
<div style="background:blue url(http://www.wbex.ru/style/logo.png) repeat top left; 
            width:200; 
            border:3; 
            height:150; 
            font-size:14">This is the div element with background info in one line.</div>
            <br><br><br><br><br><br><br><br><br>
<div style="background-color:red; 
            background-attachment:fixed; 
            background-image:url(http://www.wbex.ru/style/logo.png); 
            background-repeat:repeat; 
            background-position-x:top; 
            background-position-y:left; 
            width:200; 
            border:3; 
            height:150; 
            font-size:14">
            
            background-position-y is set to left. 
            
            </div>
</body>
</html>