-
Notifications
You must be signed in to change notification settings - Fork 0
/
style2.html
145 lines (132 loc) · 3.91 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<style>
/* Stylesheet 3: */
body {
font: 100% Verdana;
margin: 20px;
line-height: 26px;
}
.container {
min-width: 900px;
}
.wrapper {
position: relative;
overflow: auto;
}
#sidebar {
background-color: #f1f1f1;
border: 1px solid #d4d4d4;
padding-left: 10px;
}
#bottom {
text-align: center;
padding: 10px;
font-size: 70%;
line-height: 14px;
}
h1,
h2,
h3 {
color: #4caf50;
}
#menulist {
padding: 0;
position: relative;
overflow: auto;
}
.menuitem {
width: 165px;
float: left;
background-color: #555555;
color: #ffffff;
list-style-type: none;
margin: 4px;
padding: 2px;
text-align: center;
cursor: pointer;
}
.menuitem:nth-child(2) {
background-color: #04aa6d;
}
.menuitem:hover {
background-color: #000;
}
a {
color: #000000;
text-decoration: none;
}
a:hover {
color: #84c754;
}
</style>
</head>
<body>
<div class="container wrapper">
<div id="top">
<h1>Welcome to Junwon's Homepage</h1>
<p>Use the menu to select different Stylesheets</p>
</div>
<div class="wrapper">
<div id="menubar">
<ul id="menulist">
<li class="menuitem">
<a href="style1.html" style="color: white">Stylesheet 1</a>
</li>
<li class="menuitem">
<a href="style2.html" style="color: white">StyleSheet 2</a>
</li>
<li class="menuitem">
<a href="nostyle.html" style="color: white">No Stylesheet</a>
</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" onclick="reStyle(0);return false"
>Stylesheet1</a
>,
<a href="style2.html" onclick="reStyle(1);return false"
>Stylesheet2</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="#" onclick="noStyles();return false"
>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>
</body>
</html>