4 .parent { text-decoration: underline; position: relative; }
5 .static { position: static; }
6 .relative { position: relative; }
7 .float { float: right; }
8 .abspos { position: absolute; top:
4em; }
9 .fixed { position: fixed; top:
6em; }
14 <div class=
"static">The static-positioned text should be underlined.
</div>
15 <div class=
"relative">The relative-positioned text should be underlined.
</div>
16 <div class=
"float">The floating-positioned text should NOT be underlined.
</div>
17 <div class=
"abspos">The absolutely-positioned text should NOT be underlined.
</div>
18 <div class=
"fixed">The fixed-positioned text should NOT be underlined.
</div>