Skip to content

Commit 493b57b

Browse files
committed
docs: basic box model
1 parent 2011d97 commit 493b57b

4 files changed

Lines changed: 34 additions & 1 deletion

File tree

4_experiments/.DS_Store

0 Bytes
Binary file not shown.

4_experiments/1_core_language/2_imported.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<head>
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<!--The import is actually performed in css/my_style.css. This is CSS's composition mechanism-->
78
<link rel="stylesheet" type="text/css" href="css/my_style.css">
89
<title>Imported CSS</title>
910
</head>

4_experiments/1_core_language/3_inline.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta charset="utf-8" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<link rel="stylesheet" type="text/css" href="css/my_style.css">
8-
<title>Imported CSS</title>
8+
<title>Inline CSS</title>
99
</head>
1010

1111
<body>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="UTF-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>CSS Box Model</title>
8+
<style>
9+
h1 {
10+
width: 200;
11+
height: 100;
12+
padding: 50px;
13+
border: 15px solid green;
14+
margin: 20px;
15+
}
16+
17+
div {
18+
width: 200;
19+
height: 100;
20+
padding: 50px;
21+
border: 15px solid green;
22+
margin: 20px;
23+
}
24+
</style>
25+
</head>
26+
27+
<body>
28+
<h1>Hello I am a H1 with the CSS box model properties explicitly set </h1>
29+
<div>Hello I am a Div with the CSS box model properties explicitly set </div>
30+
</body>
31+
32+
</html>

0 commit comments

Comments
 (0)