Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>CSS Exercise 2</title>
  5. <link rel="stylesheet" type="text/css" href="style2.css">
  6. <style>
  7. ul.nav li{
  8. display: inline-block;
  9. padding-right: 10px;
  10. }
  11. </style>
  12. </head>
  13. <body>
  14. <ul class='nav'>
  15. <li><a href="#explanation">Home</a></li>
  16. <li><a href="#about_blue">About blue</a></li>
  17. <li><a href="#about_yellow">About yellow</a></li>
  18. </ul>
  19.  
  20. <div id='page_content'>
  21.  
  22. <h1>All about colours</h1>
  23.  
  24. <div id='explanation'>
  25. <p>This is a page about colours. You need to fix it so that:</p>
  26. <ul>
  27. <li>The sections about blue and yellow have 3px solid black borders.</li>
  28. <li>The 'About blue' has a light blue (#6495ED) background.</li>
  29. <li>The 'About yellow' has a light yellow (#FFEBCD) background.</li>
  30. <li>The list of points in the 'About blue' section should be in blue text (but the paragraph text shouldn't be).</li>
  31. <li>The list of points in the 'About yellow' section should be in orange text (but the paragraph text shouldn't be).</li>
  32. <li>The final item in both colour section lists is the most important. It should be in font size 16px, with font weight bold.</li>
  33. <li>The navigation at the top should have a red background with white text.</li>
  34. </ul>
  35. </div>
  36.  
  37. <div id='about_blue' class='color-info'>
  38. <h2>About blue</h2>
  39.  
  40. <p>This section is all about the colour blue. This text should be black.</p>
  41.  
  42. <ul>
  43. <li>This is an unordered list.</li>
  44. <li>It contains some stuff about the colour blue.</li>
  45. <li>The text should be blue.</li>
  46. <li class='important'>The biggest blue animal in the world is the blue whale.</li>
  47. </ul>
  48. </div>
  49.  
  50. <div id='about_yellow' class='color-info'>
  51. <h2>About yellow</h2>
  52.  
  53. <p>The section is all about the colour yellow. This text should be black.</p>
  54.  
  55. <ul>
  56. <li>This is an unordered list.</li>
  57. <li>It contains some stuff about the colour yellow.</li>
  58. <li>The text should be orange.</li>
  59. <li class='important'>The tastiest yellow fruit is the banana - much nicer than lemons.</li>
  60. </ul>
  61. </div>
  62.  
  63. </div>
  64.  
  65. </body>
  66. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement