Center Callout : q « Tags « HTML / CSS






Center Callout

   
<!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></title>
<style type="text/css" media="Screen">
* .callout {
  display: block;
  width: 300px;
  margin: 20px auto;
  padding: 6px;
  position: relative;
  left: 0%;
  color: black;
  background-color: pink;
  border-left: 1px solid black;
  border-right: 1px solid black;
  border-top: 6px solid black;
  border-bottom: 6px solid black;
}
</style>
</head>
<body>

<span class="callout">Centered Callout!</span> 

</body>
</html>

   
    
  








Related examples in the same category

1.Inline quotation
2.q:before {content:open-quote;}
3.q:after {content:close-quote;}
4.q {quotes: '"' '"';}
5.quotes for quote
6.Create quote with float: right
7.Using classes and CSS overrides to create an alternate pull quote
8.Creating pull quotes in CSS
9.Pull Quote with font, border top bottom
10.Quote with thick border
11.Right Floating Callout
12.'q' Example
13.'cite' provides a URL for reference information to a borrowed quotation