CSS BOX Model
Hi,
Output of above code:
This is Sagar and in this blog we are going to learn how to create CSS BOX Model.
The CSS box model is a box that wraps around every HTML element.
<html>
<head>
<style>
div {
background-color: white;
width: 300px;
border: 30px solid yellow;
padding: 40px;
margin: 20px;
}
</style>
</head>
<body>
<div><b>This is the content of the box.</b><br/> We have added: <ul><li>40px padding</li><li>20px margin</li><li>30px yellow border.</li></ul> </div>
</body>
</html>
Thanks 😊 for reading this blog...
Sagar Nipane
Email: spnipane@gmail.com
Comments
Post a Comment