code border-left: 3px solid #D4D4D4; : code « Tags « HTML / CSS






code border-left: 3px solid #D4D4D4;

   

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />

<style type='text/css'>
code {
    margin: 5px 0;
    padding: 10px;
    text-align: left;
    display: block;
    overflow: auto;  
    font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
    background: #F5F5F5;
  border-left: 3px solid #D4D4D4;
}
</style>
<title>Marketplace</title>
</head>

<body>

<!-- wrap starts here -->
<div id="wrap">
      <h3>Code</h3>        
      <p><code>
      code-sample { <br />
      font-weight: bold;<br />
      font-style: italic;<br />        
      }    
      </code></p>  

</div>

</body>
</html>
  

   
    
    
  








Related examples in the same category

1.code Element For Adding Code to Your Web Pages
2.code must be within pre (inline elements can't contain block-level elements)
3.Displaying blocks of code online
4.Blocked and preserved Code
5.Formula input
6.code margin: 5px 0;
7.code padding: 10px;
8.code text-align: left;
9.code display: block;
10.code overflow: auto;
11.code font: 500 1em/1.5em 'Lucida Console', 'courier new', monospace ;
12.code background: #F5F5F5;
13.code font-family:courier, monospace;
14.code font-size:12px;
15.code font-weight:bold;
16.code border:1px solid #000000;
17.code {display:block;}
18.code font-family: courier;
19.code color: #000000;
20.code font-size: smaller;
21.code background-color: #d6d6d6;
22.code padding: 2px;
23.code margin: 5px;
24.code padding: 3px;
25.code background-color: black;
26.code color: #FFFFFF;
27.Code style
28.'code' Example