Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Aug 30th, 2011  |  syntax: HTML  |  size: 0.68 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html lang="en">
  4.   <head>
  5.     <meta http-equiv="content-type" content="text/html; charset=utf-8">
  6.     <meta http-equiv="content-language" content="en">
  7.     <title>F00</title>
  8.     <meta name="description" content="div colour does not scroll right">
  9. <style type="text/css">
  10. * {
  11.   margin: 0;
  12. }
  13.  
  14. #red {
  15.   width: 100%; /*you can comment out, same problem*/
  16.   height: 200px; /*fill div up a bit*/
  17.   background-color: #f00;
  18. }
  19. #red p {
  20.   width: 700px;
  21.   background-color: #0f0;
  22. }
  23.  
  24. </style>
  25.   </head>
  26. <body>
  27.   <div id="red">
  28.     <p>me me me me meee....</p>
  29.   </div>
  30. </body>
  31. </html>
clone this paste RAW Paste Data