-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
147 lines (126 loc) · 4.41 KB
/
index.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
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
<!DOCTYPE html>
<html>
<head>
<title>Positioning Study Guide - Box Model</title>
<link href="resources/css/styles.css" type="text/css" rel="stylesheet" />
</head>
<body>
<header>
<nav>
<a href="./index.html">The Box Model</a>
<a href="./display.html">Display</a>
<a href="./flex.html">Flex Box</a>
</nav>
<h1>My Positioning Study Guide</h1>
<h2>The Box Model</h2>
<img id="boxmodel" src="resources/images/diagram-boxmodel.svg" alt="The Box Model" />
</header>
<!--~~~~~~~~~~Height and Width~~~~~~~~-->
<h3>Height and Width</h3>
<table>
<thead>
<tr>
<th colspan="3">Definitions</th>
</tr>
<tr>
<th>Property</th>
<th>Definition</th>
<th>Common Values</th>
</tr>
</thead>
<tbody>
<tr>
<td>height</td>
<td>Vertical measurment</td>
<td>#px #% auto</td>
</tr>
<tr>
<td>width</td>
<td>Horizontal measurment</td>
<td>#px #% auto</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th colspan="2">Examples</th>
</tr>
<tr>
<th>Property</th>
<th>Example</th>
</tr>
</thead>
<tbody>
<tr>
<td>height</td>
<td>
<p><strong>height: <em>top right bottom left</em>;</strong></p>
<p>height: 10px 5px 20px 0px;</p>
<hr />
<p><strong>height: <em>top/bottom left/right</em>;</strong></p>
<p>height: 20px auto;</p>
</td>
</tr>
<tr>
<td>width</td>
<td>
<p><strong>width: <em>top right bottom left</em>;</strong></p>
<p>width: 10px 5px 20px 0px;</p>
<hr />
<p><strong>width: <em>top/bottom left/right</em>;</strong></p>
<p>width: 20px auto;</p>
</td>
</tr>
</tbody>
</table>
<h4>Max and Min</h4>
<!--~~~~~~~~~~~~~~Borders~~~~~~~~~~~~~-->
<h3>Borders</h3>
<dl>
<dt>Border</dt>
<dd>A line that surrounds an element</dd>
</dl>
<table>
<thead>
<th>Property</th>
<th>Definition</th>
<th>Common Values</th>
</thead>
<tbody>
<tr>
<td>width</td>
<td>The thickness of the border</td>
<td><em>#</em>px thin medium thick</td>
</tr>
<tr>
<td>style</td>
<td>The design of the border</td>
<td>none dotted solid</td>
</tr>
<tr>
<td>color</td>
<td>The color of the border</td>
<td><em>name hex rgb</em></td>
</tr>
</tbody>
</table>
<h4>Border Radius</h4>
<!--modify the corners of an element's border-->
<!--~~~~~~~~~~~~~~~~~Padding~~~~~~~~~~~~~~~~-->
<h3>Padding</h3>
<!--~~~~~~~~~~~~~~~~~Margins~~~~~~~~~~~~~~~~-->
<h3>Margins</h3>
<!--~~~~~~~~~~~~~~~~~Overflow~~~~~~~~~~~~~~~~-->
<h3>Overflow</h3>
<!--~~~~~~~~~~~~~Reseting Defaults~~~~~~~~~~~~~-->
<h3>Reseting Defaults</h3>
<!--~~~~~~~~~~~~~~~~~Visability~~~~~~~~~~~~~~~~-->
<h3>Visability</h3>
<div class="class">
<p id="id">Test</p>
<p>Test</p>
<p>Test</p>
</div>
</body>
</html>