text-decoration: underline overline line-through : text decoration « CSS « HTML / CSS






text-decoration: underline overline line-through

   

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>text-decoration effects</title>
  <style type="text/css">
    body {
      font: 12px/1.5em Georgia, serif;
    }
    p.one { 
      text-decoration: underline overline line-through;
    }

  </style>
</head>
<body>
  <p class="one">A underlined line</p>
  <p class="two">An overlined line</p>
  <p class="three">A line with line-through</p>
  <p class="four">All three</p>
</body>
</html>

   
    
  








Related examples in the same category

1.'text-decoration' Example
2.text-decoration: underline overline
3.text-decoration: underline
4.text-decoration: overline
5.text-decoration: line-through
6.text-decoration: underline;
7.text-decoration: overline;
8.text-decoration: line-through;
9.text-decoration: blink;
10.text-decoration: underline overline;
11.text-decoration: underline line-through;
12.text-decoration: overline line-through;
13.text-decoration: underline;text-decoration: overline;text-decoration: line-through;text-decoration: blink;
14.text-decoration: underline overline line-through blink;
15.text-decoration: none for visited anchor
16.text-decoration: none for hover anchor
17.text-decoration: none; for anchor
18.text-decoration:underline;overline;line-through;blink;
19.text-decoration:underline;overline;line-through;blink;}
20.Various text decorations
21.text-decoration: underline overline line-through blink
22.This text is underlined and overlined
23.This text is underlined, overlined, striken and blinking.
24.text-decoration:underline line-through
25.text-decoration:overline line-through