This repository was archived by the owner on Sep 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcss-selectors.html
More file actions
59 lines (49 loc) · 1.51 KB
/
css-selectors.html
File metadata and controls
59 lines (49 loc) · 1.51 KB
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
<html>
<head>
<title>LUNCHTML 2.0 - Review: MVP Tags</title>
<link rel="stylesheet" type="text/css" href="style-review.css" />
<link rel="stylesheet" type="text/css" href="style-css.css" />
<link href='http://fonts.googleapis.com/css?family=Ribeye+Marrow' rel='stylesheet' type='text/css'>
</head>
<body>
<h1>CSS Selectors</h1>
<a name="native"><br/><br/><br/><h2>divs & spans</h2>
<span id="label-span">CSS:</span>
<pre>
<style>
p {font-weight:bold;background-color:#f00;color:#fff;}
</style>
<p>Hello, world.</p>
</pre>
<span id="label-span">RESULT:</span>
<style>
p {font-weight:bold;background-color:#f00;color:#fff;}
</style>
<p>Hello, world.</p>
<div class="nav">
<a href="#native">native DOM elements</a> |
<a href="#div">divs & spans</a>
</div>
<a name="div"><br/><br/><br/><h2>divs & spans</h2>
<span id="label-span">CSS:</span>
<pre>
<style>
#myid {font-weight:bold;background-color:#ff0;}
.myclass {font-weight:bold;background-color:#0ff;}
</style>
<div id="myid">Hello, world.</div>
<div class="myclass">Hello, world.</div>
</pre>
<span id="label-span">RESULT:</span>
<style>
#myid {font-weight:bold;background-color:#ff0;}
.myclass {font-weight:bold;background-color:#0ff;}
</style>
<div id="myid">Hello, world.</div>
<div class="myclass">Hello, world.</div>
<div class="nav">
<a href="#native">native DOM elements</a> |
<a href="#div">divs & spans</a>
</div>
</body>
</html>