Skip to content

Commit 964149f

Browse files
author
Redwan Sharafat Kabir
committed
1 parent ee4fa38 commit 964149f

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

HTML5 and CSS/CSS Div.html

+21-11
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@
77
#div1 {
88
color: white;
99
background-color: gray;
10-
width: 300px;
11-
height: 300px;
10+
width: 250px;
11+
height: 150px;
1212
margin-top: 50px;
1313
padding: 40px;
1414
box-shadow: 10px 10px 5px black;
15+
float: left;
1516
}
1617
#div2 {
1718
/*color: blanchedalmond;*/
1819
/*background-color: cornflowerblue;*/
19-
width: 400px;
20-
height: 300px;
20+
width: 300px;
21+
height: 250px;
2122
margin: 50px 50px 50px 20px;
2223
padding: 0px 35px 80px 35px;
2324
box-shadow: 10px 10px 5px grey;
@@ -26,23 +27,32 @@
2627
background-repeat: no-repeat;
2728
background-position: center bottom;
2829
border: 5px violet groove;
30+
float: left;
2931
}
3032
#div3 {
3133
color: blanchedalmond;
3234
background-color: peru;
33-
width: 300px;
34-
height: 300px;
35-
/* margin: top right bottom left; */
35+
width: 250px;
36+
height: 150px;
37+
/*margin: top right bottom left;*/
3638
margin: 50px 50px 50px 20px;
3739
padding: 40px 30px 40px 30px;
3840
box-shadow: 10px 10px 5px grey;
39-
border: 10px dotted brown
41+
border: 10px dotted brown;
42+
float: left;
43+
}
44+
#main_div {
45+
background-color: aquamarine;
46+
width: 1340px;
47+
height: 615px;
4048
}
4149
</style>
4250
</head>
4351
<body>
44-
<div id="div1"><h1>Div Tag 1</h1></div>
45-
<div id="div2"><h2 style="color: black"><br>&nbsp;&nbsp;&nbsp;Div Tag 2</h2></div>
46-
<div id="div3"><h1>Div Tag 3</h1></div>
52+
<div id="main_div">
53+
<div id="div1"><h1>Div Tag 1</h1></div>
54+
<div id="div2"><h2 style="color: black"><br>&nbsp;&nbsp;&nbsp;Div Tag 2</h2></div>
55+
<div id="div3"><h1>Div Tag 3</h1></div>
56+
</div>
4757
</body>
4858
</html>

0 commit comments

Comments
 (0)