Use different border style to highlight : border style « CSS « HTML / CSS






Use different border style to highlight

  


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>A Web page</title>
<style type="text/css" media="Screen">
body {
  background-color: black;
  font-family: Georgia, serif;
}

p {
  font-family: Georgia, serif;
  font-size: 13px;
  color: white;
  padding-left: 25px;
}
.large {
  font-size: 130%;
  border: 1px dotted white;
  padding: 5px;
}

.small {
  font-size: 90%;
  border: 2px dashed #555;
  padding: 10px;
}

</style>
</head>
<body>
    <p>Another paragraph, with <span class="large"><em>large italic</em></span> and <span class="small"><strong>small bold</strong></span> text, also in Verdana.</p>
</body>
</html>

   
  








Related examples in the same category

1.The border-style Property
2.'border-style' Example
3.Border style all values
4.border style shorthand with three values
5.border-style: solid dotted;
6.border style shorthand with two values
7.border-style: hidden
8.border-style: dotted
9.border-style: dashed
10.border-style: solid
11.border-style: groove
12.border-style: ridge
13.border-style: inset
14.border-style: outset
15.border-style: none
16.border-style: solid dashed double dotted;
17.border-style: solid dashed dotted;
18.border-style: solid dashed double inset;
19.border-style: solid; border-width: 5px;
20.border-style: double; border-width: medium;
21.All border styles
22.border-style: hidden;
23.border-style: double
24.border-style: none
25.border-style: solid dashed double dotted
26.Various border-styles
27.When no border-color is specified, the border color is the value of the color property.
28.Individual border-style properties can be combined into a single property.
29.Shading border for paragraph
30.Border styles, color and size