-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBox Model in CSS.html
More file actions
246 lines (236 loc) · 6.63 KB
/
Box Model in CSS.html
File metadata and controls
246 lines (236 loc) · 6.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
/* Box Model in CSS */
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="/style.css">
<style>
/*Website'r inspect e giye kono content'r upre mouse nile basically ei box gula dekha jay*/
/*main content ke ghire ekta boundery thake, oita ke border bole*/
/*main content and border'r majhe'r space ke padding bole*/
/*ek content'r border and arek content'r border'r majher space ke margin bole*/
/***Height and width property***/
#div1{
height: 100px;
width: 50px;
background-color: blue;
}
#div2{
height: 200px;
width: 100px;
background-color: red;
}
/***border property***/
/*border style*/
#div3{
height: 100px;
width: 100px;
background-color: green;
border-style: solid;
}
#div4{
height: 100px;
width: 100px;
background-color: green;
border-style: dashed;
}
/*border width*/
#div5{
height: 100px;
width: 100px;
background-color: green;
border-style: solid;
border-width: 10px;
}
#div6{
height: 100px;
width: 100px;
background-color: green;
border-style: solid;
border-width: 10px;
border-color: rgb(17, 0, 255);
}
#div7{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red; /*eta hocche muloto border set korar short way*/
}
/*border radius*/
#div8{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
border-radius: 30px;
}
#div9{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
border-radius: 30%; /*eta ke ebhabe percentage akareo lekha jay*/
}
/***Padding property***/
#div10{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
padding-left: 50px; /*eta basically main content and border'r majhe 50px space create kore*/
}
#div11{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
padding-right: 50px;
}
#div12{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
padding-bottom: 50px;
}
#div13{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
padding-top: 50px;
}
/*shorthand of padding*/
#div14{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
padding: 50px; /*ekhane top,right,bottom and left ei 4 jayga tei padding add hbe*/
}
#div15{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
padding: 80px 70px 60px 50px;
/*
ekhane top,right,bottom and left e alada alada bhabe padding add kora jay
mone rakhte hbe je eta clockwise ghure padding dibe orthat
80px dibe top padding
70px dibe right padding
60px dibe bottom padding
50px dibe left padding
*/
}
/***Margin property***/
#div16{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
margin-top: 50px;
}
#div17{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
margin-top: 50px;
}
#div18{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
margin-bottom: 50px;
}
#div19{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
}
#div20{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
margin-left: 50px;
}
/*shorthand of add margin*/
#div21{
height: 100px;
width: 100px;
background-color: green;
border: 10px solid red;
margin: 50px 50px 50px 50px; /*etao clockwise kaj korbe top,right,bottom and left ei pattern e*/
}
</style>
</head>
<body>
<h1>heading</h1>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Assumenda amet rerum voluptatem atque officiis similique, sint optio tenetur dolore sed quam distinctio inventore veritatis deleniti ipsa, nesciunt asperiores in libero!</p>
<button>Click me!</button>
<div id="div1">
<b>this is div1</b>
</div>
<br>
<div id="div2">
<b>this is div2</b>
</div>
<br>
<div id="div3">
<b>this is div3</b>
</div>
<br>
<div id="div4">
<b>this is div4</b>
</div>
<br>
<div id="div5">
<b>this is div5</b>
</div>
<br>
<div id="div6">
<b>this is div6</b>
</div>
<br>
<div id="div7">
<b>this is div7</b>
</div>
<br>
<div id="div8">
<b>this is div8</b>
</div>
<br>
<div id="div9">
<b>this is div9</b>
</div>
<br>
<div id="div10"><b>this is div10</b></div>
<br>
<div id="div11"><b>this is div11</b></div>
<br>
<div id="div12"><b>this is div12</b></div>
<br>
<div id="div13"><b>this is div13</b></div>
<br>
<div id="div14"><b>this is div14</b></div>
<br>
<div id="div15"><b>this is div15</b></div>
<br>
<div id="div16"><b>this is div16</b></div>
<br>
<div id="div17"><b>this is div17</b></div>
<br>
<div id="div18"><b>this is div18</b></div>
<br>
<div id="div19"><b>this is div19</b></div>
<br>
<div id="div20"><b>this is div20</b></div>
<br>
<div id="div21"><b>this is div21</b></div>
</html>