-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle2.html
120 lines (117 loc) · 4.2 KB
/
style2.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
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>20240829</title>
<link rel="shortcut icon" href="./star.jpg">
<style>
.container{
xmin-width: 900px;
}
.wrapper{
position: relative;
overflow: auto;
}
body{
font: 100% Verdana;
margin: 20px;
line-height: 26px;
}
#menulist{
padding: 0;
position: relative;
overflow: auto;
}
.menuitem{
width: 165px;
float: left;
background-color: #555555;
color: #ffffff;
text-align: center;
list-style-type: none;
padding: 2px;
margin: 4px;
cursor: pointer;
}
#sidebar{
background-color: #f1f1f1;
border: 1px solid #d4d4d4;
padding-left: 10px;
}
#bottom{
text-align: center;
padding: 10px;
font-size: 70%;
line-height: 14px;
}
#top, #main h1, #main h2, #sidebar h3{
color: #4CAF50;
}
.menuitem{
width: 165px;
float: left;
background-color: #555555;
color: #ffffff;
list-style-type: none;
margin: 4px;
padding: 2px;
text-align: center;
cursor: pointer;
}
.menuitem:hover{
background-color: #000;
}
.menuitem:nth-child(3){
background-color: #04AA6D;
}
a{
color: #000000;
}
a:hover{
color: #84c754;
}
</style>
</head>
<body>
<div class="container wrapper">
<div id="top">
<h1>Welcome to Seokyoung's Homepage(22100718)</h1>
<p>Use the menu to select different Stylesheets</p>
</div>
<div class="wrapper">
<div id="menubar">
<ul id="menulist">
<li class="menuitem">Stylesheet 1</li>
<li class="menuitem">Do not click</li>
<li class="menuitem">Stylesheet 3</li>
<li class="menuitem">example.html</li>
<li class="menuitem">No Stylesheet</li>
</ul>
</div>
<div id="main">
<h1>Same Page Different Stylesheets</h1>
<p>This is a demonstration of how different stylesheets can change the layout of your HTML page. You can change the layout of this page by selecting different stylesheets in the menu, or by selecting one of the following links:<br>
<a href="style1.html">Stylesheet1</a>,
<a>Do not click</a>,
<a href="style2.html">Stylesheet3</a>,
<a href="example.html">example.html</a>.
</p>
<h2>No Styles</h2>
<p>This page uses DIV elements to group different sections of the HTML page. Click here to see how the page looks like with no stylesheet:<br>
<a href="index.html">No Stylesheet</a>.
</p>
</div>
<div id="sidebar">
<h3>Side-Bar</h3>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.</p>
</div>
</div>
<div id="bottom">
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis at vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.
</div>
</div>
</div>
</body>
</html>