Advertisement
Guest User

Untitled

a guest
Dec 25th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <title>Learning CSS</title>
  5.  
  6. <meta charset="utf-8" />
  7. <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  8. <meta name="viewport" content="width=device-width, initial-scale=1" />
  9.  
  10. <style type="text/css">
  11.  
  12. .large {
  13. font-size:200%;
  14. }
  15.  
  16. #green {
  17. color:green;
  18. }
  19.  
  20. .underline {
  21. text-decoration:underline;
  22. }
  23.  
  24. .bold {
  25. font-weight:bold;
  26. }
  27.  
  28. .purplebox {
  29. background-color:#8904B1;
  30. width:200px;
  31. height:200px
  32. position:relative;
  33. left:100px;
  34. }
  35.  
  36. .greenbox {
  37. background-color:#01DF01;
  38. width:300px;
  39. height:100px;
  40. }
  41.  
  42.  
  43. </style>
  44.  
  45. </head>
  46.  
  47. <body>
  48.  
  49. <div class="purplebox">
  50.  
  51. <p class="large">This is some text.</p>
  52.  
  53. </div>
  54.  
  55. <div class="greenbox">
  56.  
  57. <p id="green" class="large">This is some more text.</p>
  58.  
  59. </div>
  60.  
  61. <div class="clear"></div>
  62.  
  63. <p>The third <span class="underline large bold">word</span> in this paragraph is underlined.</p>
  64.  
  65. </body>
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement