CSS DIV AND RGBA
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=, initial-scale=1.0">
<title>CSS LEVEL 2</title>
<link rel="stylesheet" href="STLE.CSS">
</head>
<body>
<div id="one">div 1</div>
<div id="two">div 2</div>
<div id="three">div 3</div>
<div id="four">div 4</div>
</body>
</html>
CSS
div{
width: 100px;
height: 100px;
margin: 25px;
padding: 25px;
display: inline-block;
}
#one{
background-color: blue;
}
#two{
background-color: red;
}
#three{
background-color:green;
}
#four{
background-color: rgba(255, 0, 0, 0.56);
}
OUTPUT
div 1
div 2
div 3
div 4
Comments
Post a Comment