<head>
<style>
.div1{
background-color: antiquewhite;
display: block;
width: 100vw;
height: 20vh;
margin: 10px;
}
.div2{
background-color: rgb(173, 105, 17);
display: inline-block;
width: 30vw;
height: 40vh;
margin: 10px;
}
.div3{
background-color: rgb(5, 165, 21);
display: inline-flex;
width: 40vw;
height: 40vh;
margin: 10px;
}
</style>
</head>
<body>
<div class="div1">DIV-1</div>
<div class="div2">DIV-2</div>
<div class="div3">DIV-3</div>
</body>
<style>
.div1{
background-color: antiquewhite;
display: block;
width: 100vw;
height: 20vh;
margin: 10px;
}
.div2{
background-color: rgb(173, 105, 17);
display: inline-block;
width: 30vw;
height: 40vh;
margin: 10px;
}
.div3{
background-color: rgb(5, 165, 21);
display: inline-flex;
width: 40vw;
height: 40vh;
margin: 10px;
}
</style>
</head>
<body>
<div class="div1">DIV-1</div>
<div class="div2">DIV-2</div>
<div class="div3">DIV-3</div>
</body>
👍6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
margin: 0px;
padding: 0px;
box-sizing: border-box;
background-color: bisque;
}
.parent{
height: 100vh;
display: grid;
grid-template-rows: 10% 80% 10%;
grid-template-columns: 10% 80% 10%;
border: 2px solid tomato;
}
.header{
background-color: goldenrod;
grid-column: 1/4;
grid-row: 1/2;
justify-content: center;
border: 2px solid red;
display: flex;
}
.left{
background-color: aqua;
grid-column: 1/2;
grid-row:2/3 ;
border: 2px solid green;
justify-content: first baseline;
}
.main{
background-color: aqua;
grid-column: 2/3;
grid-row:2/3 ;
border: 2px solid lime;
justify-content: first baseline;
}
.right{
background-color: yellowgreen;
grid-column: 3/4;
grid-row:2/3 ;
border: 2px solid rosybrown;
justify-content: first baseline;
}
.footer{
background-color: rgb(156, 203, 15);
grid-column: 1/4;
grid-row:3/4 ;
border: 2px solid rgb(155, 11, 11);
justify-content: center;
}
#img1{
width: 20px;
height: 20px;
border: 2px solid blue;
border-radius: 50px;
}
</style>
</head>
<body>
<div class="parent">
<div class="header">
<div>
<img src="fb.GIF" id="img1">
<b>Sathya Technologies</b>
</div>
<div>
<a href="#">Home</a>
<a href="">About</a>
<a href="">Contact</a>
<a href="">Login</a>
<a href="">Register</a>
</div>
</div>
<div class="left"> Left Content Area</div>
<div class="main"> Main Content Area</div>
<div class="right">Right Content Area</div>
<div class="footer">@CopyRights-ProSkills-2024</div>
</div>
</body>
</html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body{
margin: 0px;
padding: 0px;
box-sizing: border-box;
background-color: bisque;
}
.parent{
height: 100vh;
display: grid;
grid-template-rows: 10% 80% 10%;
grid-template-columns: 10% 80% 10%;
border: 2px solid tomato;
}
.header{
background-color: goldenrod;
grid-column: 1/4;
grid-row: 1/2;
justify-content: center;
border: 2px solid red;
display: flex;
}
.left{
background-color: aqua;
grid-column: 1/2;
grid-row:2/3 ;
border: 2px solid green;
justify-content: first baseline;
}
.main{
background-color: aqua;
grid-column: 2/3;
grid-row:2/3 ;
border: 2px solid lime;
justify-content: first baseline;
}
.right{
background-color: yellowgreen;
grid-column: 3/4;
grid-row:2/3 ;
border: 2px solid rosybrown;
justify-content: first baseline;
}
.footer{
background-color: rgb(156, 203, 15);
grid-column: 1/4;
grid-row:3/4 ;
border: 2px solid rgb(155, 11, 11);
justify-content: center;
}
#img1{
width: 20px;
height: 20px;
border: 2px solid blue;
border-radius: 50px;
}
</style>
</head>
<body>
<div class="parent">
<div class="header">
<div>
<img src="fb.GIF" id="img1">
<b>Sathya Technologies</b>
</div>
<div>
<a href="#">Home</a>
<a href="">About</a>
<a href="">Contact</a>
<a href="">Login</a>
<a href="">Register</a>
</div>
</div>
<div class="left"> Left Content Area</div>
<div class="main"> Main Content Area</div>
<div class="right">Right Content Area</div>
<div class="footer">@CopyRights-ProSkills-2024</div>
</div>
</body>
</html>
👍4