22 lines
713 B
HTML
22 lines
713 B
HTML
<html>
|
|
<head>
|
|
<style>
|
|
.parent { text-decoration: underline; position: relative; }
|
|
.static { position: static; }
|
|
.relative { position: relative; }
|
|
.float { float: right; }
|
|
.abspos { position: absolute; top: 4em; }
|
|
.fixed { position: fixed; top: 6em; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="parent">
|
|
<div class="static">The static-positioned text should be underlined.</div>
|
|
<div class="relative">The relative-positioned text should be underlined.</div>
|
|
<div class="float">The floating-positioned text should NOT be underlined.</div>
|
|
<div class="abspos">The absolutely-positioned text should NOT be underlined.</div>
|
|
<div class="fixed">The fixed-positioned text should NOT be underlined.</div>
|
|
</div>
|
|
</body>
|
|
</html>
|