Posted By

benrudolph on 04/27/10


Tagged

css textmate quotes


Versions (?)

Bog Curly Bracket with HTML example


 / Published in: Other
 

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  7.  
  8. <title>untitled</title>
  9. <style type="text/css" media="screen">
  10. blockquote {
  11. position: relative;
  12. text-indent: 2em;
  13. }
  14.  
  15. .bqstart,
  16. .bqend { font-size: 300%; }
  17.  
  18. /* apply IE specific rules first */
  19. .bqstart {
  20. text-indent: 0;
  21. margin: -0.6em 0 -2em 0;
  22. float: left;
  23. }
  24.  
  25. blockquote > .bqstart {
  26. /* add extra non-ie rules */
  27. position: absolute;
  28. top: -0.2em;
  29. left: 0;
  30. /* remove IE specific rules */
  31. float: none;
  32. margin: 0;
  33. }
  34.  
  35. .bqend {
  36. position: absolute;
  37. margin-top: -0.6em;
  38. right: 0;
  39. text-indent: 0;
  40. }
  41.  
  42. blockquote > .bqend {
  43. margin-top: -0.2em;
  44. }
  45. </style>
  46. </head>
  47.  
  48. <body>
  49.  
  50. <blockquote><span class="bqstart">&#8220;</span>
  51. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  52. <span class="bqend">&#8221;</span></blockquote>
  53. </body>
  54. </html>
  55.  

Report this snippet  

You need to login to post a comment.