forked from rohan1917/FSWDT-JAN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathday-12-boxModelDisplayAndPosition.html
64 lines (46 loc) · 1.57 KB
/
day-12-boxModelDisplayAndPosition.html
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
<!Doctype html>
<html>
<head>
<title>Box Model, Display and Position in CSS</title>
<link rel="stylesheet" href="./day-12-boxModelDisplayAndPosition.css" />
</head>
<body>
<!-- Box Model -->
<!-- <h6>Hey this is an example with respect to Box Model</h6> -->
<!-- Display in CSS -->
<!--
>> block
>> inline
>> inline-block
-->
<!-- Block: It will take entire width of ur screen -->
<!-- <div>
<div class="displayInCss1">Segment 1</div>
<div class="displayInCss2">Segment 2</div>
</div> -->
<!-- Inline: It will take what space is required -->
<!-- <div>
<div class="displayInCss1">Segment 1 </div>
<div class="displayInCss2">Segment 2 </div>
</div> -->
<!-- Inline-Block: Where it is a combination of both 1 n 2 -->
<!-- <div>
<div class="displayInCss1">Segment 1 </div>
<div class="displayInCss2">Segment 2 </div>
</div> -->
<!-- Postion in CSS -->
<!--
>> static (default)
>> relative
>> absolute
>> fixed
>> sticky
-->
<!--
Offset: top, right, bottom, left
-->
<h3>Hello this is an example wrt to positions in CSS</h3>
<p>Hey its just a para over here ...</p>
<span class="positionInCss">hello this is an example with respect to Position in CSS</span>
</body>
</html>