Bog Curly Bracket with HTML example


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  6.  
  7. <title>untitled</title>
  8. <style type="text/css" media="screen">
  9. blockquote {
  10. position: relative;
  11. text-indent: 2em;
  12. }
  13.  
  14. .bqstart,
  15. .bqend { font-size: 300%; }
  16.  
  17. /* apply IE specific rules first */
  18. .bqstart {
  19. text-indent: 0;
  20. margin: -0.6em 0 -2em 0;
  21. float: left;
  22. }
  23.  
  24. blockquote > .bqstart {
  25. /* add extra non-ie rules */
  26. position: absolute;
  27. top: -0.2em;
  28. left: 0;
  29. /* remove IE specific rules */
  30. float: none;
  31. margin: 0;
  32. }
  33.  
  34. .bqend {
  35. position: absolute;
  36. margin-top: -0.6em;
  37. right: 0;
  38. text-indent: 0;
  39. }
  40.  
  41. blockquote > .bqend {
  42. margin-top: -0.2em;
  43. }
  44. </style>
  45. </head>
  46.  
  47.  
  48. <blockquote><span class="bqstart">&#8220;</span>
  49. 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.
  50. <span class="bqend">&#8221;</span></blockquote>
  51. </body>
  52. </html>
  53.  

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.