Professional Documents
Culture Documents
Practical 7
css
body{
background-color: black;
}
.box {
width: 200px;
height: 100px;
text-align: center;
font-size: 16px;
line-height: 100px;
.margin-box {
background-color: #3498db;
margin: 20px;
.padding-box {
background-color: #e67e22;
padding: 15px;
.outline-box {
background-color: #2ecc71;
}
output
Conclusion:
In this experiment, I learned about Margin, Padding and Outline properties in CSS and
demonstrated its working on basic HTML.