'background-color' Example : background color « CSS Attributes and Javascript Style Properties « HTML CSS Reference






'background-color' Example

    
<html>
<head>
</head>
<body>
<div style="background:blue; 
            width:200; 
            border:3; 
            height:150; font-size:14">
Text
Text
Text
Text
Text

            </div>
            <br><br><br><br><br><br><br><br><br>
<div style="background-color:red; 
            background-repeat:repeat; 
            background-position-x:top; 
            background-position-y:left; 
            width:200; 
            border:3; 
            height:150; 
            font-size:14">
Text
Text
Text
Text

            </div>
Text
</body>
</html>

    
      
      








Related examples in the same category

1.'background-color' Syntax and Note
2.'background-color' Possible Values
3.'background-color' is applied to