pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

HTML pastebin - collaborative debugging tool View Help


Posted by join on Tue 7 Oct 13:14
report abuse | download | new post

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  3.         "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  4.  
  5. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  6.         <title>demo_position_before_css</title>
  7.        
  8.         <style type="text/css">
  9.                 body {
  10.                         font-family: 'Lucida Grande';
  11.                         font-size: 11pt;
  12.                         background-color: #DEDEDE;
  13.                 }
  14.                
  15.                
  16.                 div.faireattention {
  17.                         float: right;
  18.                         width: 10em;
  19.                         margin: 1em;
  20.                         padding: 1em;
  21.                         font-family: 'Lucida Grande';
  22.                         font-size: 7pt;
  23.                         font-weight: bold;
  24.                         background-color: #CFCFCF;
  25.                         border: 1px solid #BFBFBF;
  26.                 }
  27.                
  28.                 div.faireattention:before {
  29.                         content: url('icon3.png') ' ';
  30.                 }
  31.                
  32.                
  33.                 div.faireattention2 {
  34.                         float: right;
  35.                         width: 10em;
  36.                         margin: 1em;
  37.                         padding-left: 7px;
  38.                         padding-right: 7px;
  39.                         padding-top: 3px; /* 7px - 4px */
  40.                         padding-bottom: 7px;
  41.                         font-family: 'Lucida Grande';
  42.                         font-size: 7pt;
  43.                         font-weight: bold;
  44.                         background-color: #CFCFCF;
  45.                         border: 1px solid #BFBFBF;
  46.                 }
  47.                
  48.                 div.faireattention2 > span {
  49.                         /* Repositionnement vertical ici ! */
  50.                         position: relative;
  51.                         top: 4px;
  52.                 }
  53.                
  54.                 div.faireattention2 > span:before {
  55.                         content: url('icon3.png') ' ';
  56.                 }
  57.         </style>
  58. </head>
  59.  
  60. <h1>Exemplum</h1>
  61. <div class="faireattention">Pas bien.
  62.         </div>
  63. <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque non tortor ac ligula imperdiet tempus. Nullam nec odio id odio commodo blandit. Aenean dictum eleifend justo. </p>
  64. <div class="faireattention2"><span></span>Bien.</div>
  65. <p>Mauris aliquet arcu eu tortor. Morbi sapien libero, scelerisque eu, consequat et, placerat nec, massa. Praesent fringilla congue ligula. Donec eget odio. Fusce viverra mattis nisl. Duis sit amet tortor. Integer convallis vehicula odio. Praesent ornare. Integer euismod. Cras vel lacus congue metus suscipit laoreet. Etiam quis diam nec leo congue bibendum. Quisque fermentum nisi non justo. Nulla facilisi. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</p>
  66. </body>
  67. </html>

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with @@


Remember me so that I can delete my post