PayneLess_Designs

PayneLess Designs - Text - Overlapping Example

Jun 20th, 2011
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.05 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
  2. <html><head>
  3. <meta http-equiv="content-type" content="text/html; charset=utf-8">
  4. <title>Text - Overlapping Example</title>
  5. <meta name="description" content="">
  6. <meta name="keywords" content="">
  7. <meta name="author" content="">
  8. <style type="text/css">
  9. * { margin: 0; padding: 0; border: 0; }
  10.  
  11. h1 { text-align:center; }
  12. p {
  13. margin-top: 2em;
  14. line-height:1em;
  15. text-align:center;
  16. }
  17.  
  18. p span#top-text {
  19. font-size:3em;
  20. font-family: arial;
  21. font-weight: bold;
  22. color: #f30;
  23. }
  24.  
  25. p span#bot-text {
  26. font-size:2.5em;
  27. font-family: arial;
  28. font-weight: bold;
  29. color: #339900;
  30. }
  31. </style>
  32.  
  33. <!--[if IE]>
  34. <style type="text/css">
  35. p {
  36. margin-top: .5em;
  37. line-height:1em;
  38. }
  39.  
  40. p span#top-text {
  41. font-size:2em;
  42. }
  43.  
  44. p span#bot-text {
  45. font-size:1.5em;
  46. }
  47. </style>
  48. <![endif]-->
  49. </head>
  50. <body>
  51. <h1>Text - Overlapping Example</h1>
  52. <p><span id="top-text">This is an example</span><br><span id="bot-text">of overlapping text!<br><br></span></p>
  53. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment