OLD | NEW |
---|---|
(Empty) | |
1 <!doctype html> | |
2 <style> | |
3 div { | |
4 color: #aaa; | |
5 font-size: 50px; | |
6 position: relative; | |
7 display: block; | |
8 width: 200px; | |
9 height: 100px; | |
10 } | |
11 | |
12 div > span { position: absolute; } | |
13 | |
14 #t1 > span:last-child { text-decoration: underline double coral; } | |
15 #t1 > span:last-child > span { text-decoration: underline solid skyblue; } | |
16 #t1 > span:last-child > span > span { text-decoration: underline wavy green ; } | |
17 | |
18 #t2 > span:last-child { text-decoration: underline; } | |
19 #t2 > span:last-child > span { text-decoration: underline wavy skyblue; } | |
20 #t2 > span:last-child > span > span { text-decoration: underline dashed gre en; } | |
21 | |
22 #t3 > span:last-child { text-decoration: underline; } | |
23 #t3 > span:last-child > span { text-decoration: underline wavy skyblue; } | |
24 #t3 > span:last-child > span > span { text-decoration: underline; color: co ral; } | |
25 #t3 > span:last-child > span > span > span { text-decoration: underline dot ted green; color: #aaa; } | |
esprehn
2014/03/31 17:41:24
Lets use ids instead of these selectors, it's too
| |
26 | |
27 </style> | |
28 <div id="t1"><span>AAAA</span><span>AAAA</span><span>AAAA</span><span><span><spa n>AAAA</span></span></span></div> | |
29 <div id="t2"><span>AAAA</span><span>AAAA</span><span>AAAA</span><span><span><spa n>AAAA</span></span></span></div> | |
30 <div id="t3"><span>AAAA</span><span>AAAA</span><span>AAAA</span><span>AAAA</span ><span><span><span><span>AAAA</span></span></span></span></div> | |
OLD | NEW |