-
-
Notifications
You must be signed in to change notification settings - Fork 480
Glasgow class 6- Yesna Omar- html/css- week 1 #288
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,3 +6,55 @@ | |
| * for example: General styles, Navigation styles, Hero styles, Footer etc. | ||
| * | ||
| */ | ||
| body { | ||
| background-color: rgb(227, 237, 241); | ||
| margin: 2em; | ||
| padding: 1rem; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| h1{ | ||
| color: black; | ||
| text-align: center; | ||
| } | ||
| nav{ | ||
| text-align: center; | ||
| margin: 4rem; | ||
| } | ||
| main{ | ||
| margin: 3em; | ||
| padding: 1em; | ||
| padding-left: 23em; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's rarely wise to use padding to position things. And even more risky to use em sizing. Try zooming your browser to 200% to find out why! 😉 https://www.boia.org/blog/give-yourself-an-accessibility-test-zoom-your-page-to-200 |
||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
| p:first-child { | ||
| margin: auto; | ||
| } | ||
| aside{ | ||
| margin:1em; | ||
| padding-top: 1em; | ||
| padding-left: 5em; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
| .column{ | ||
| float: left; | ||
| width: 50%; | ||
| } | ||
| .row{ | ||
| content: none; | ||
| display: table; | ||
| clear: both; | ||
| } | ||
| img{ | ||
| width: 15em; | ||
|
|
||
| } | ||
| footer{ | ||
| margin: 2em; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What would happen if you set the font size on the footer to 2em? Try it and have a think about when em sizing is a a good idea vs rem sizing (or other CSS units) |
||
| padding: 1rem; | ||
| padding-left: 23em; | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,9 +14,68 @@ | |
| /> | ||
| <link rel="stylesheet" href="css/style.css" /> | ||
| <link rel="shortcut icon" type="image/x-icon" href="favicon.ico" /> | ||
|
|
||
| </head> | ||
| <body> | ||
| <!-- Add your HTML markup here --> | ||
| <body class="menu"> | ||
| <!-- Remember: Use semantic HTML tags like <header>, <main>, <nav>, <footer>, <section> etc --> | ||
| <header> | ||
| <h1> | ||
| CLOUDS | ||
| </h1> | ||
| <nav> | ||
| A cloud is made of water drops or ice crystals floating in the sky. There are many kinds of clouds. Clouds are an important part of Earth's weather. | ||
| </nav> | ||
| </header> | ||
| <main class="row"> | ||
| <section class="column"> | ||
| <article> | ||
| <h2> | ||
| How Do Clouds Form? | ||
| </h2> | ||
| <p> | ||
| <section>The sky can be full of water. But most of the time you can't see the water. </section> | ||
| <section>drops of water are too small to see. They have turned into a gas called water vapor. As the water vapor goes higher in the sky, the air gets cooler.</section> | ||
| <section>The cooler air causes the water droplets to start to stick to things like bits of dust, ice or sea salt.</section> | ||
| </p> | ||
| </article> | ||
| <article> | ||
| <h2> | ||
| What Are Some Types of Clouds? | ||
| </h2> | ||
| <p> | ||
| <section> Clouds get their names in two ways. One way is by where they are found in the sky. louds are high up in the sky. Low clouds form closer to Earth's surface. </section> | ||
| <section>In fact, low clouds can even touch the ground. clouds are called fog. Middle clouds are found between low and high clouds.Another way clouds are named is by their shape. </section> | ||
| <section>Cirrus clouds are high clouds. They look like feathers. Cumulus clouds are middle clouds. These clouds look like giant cotton balls in the sky. Stratus clouds are low clouds. They cover the sky like bed sheets. </section> | ||
| </p> | ||
| </article> | ||
| <article> | ||
| <h2> | ||
| What Causes Rain? | ||
| </h2> | ||
| <p> | ||
| <section> of the water in clouds is in very small droplets. The droplets are so light they float in the air.</section> | ||
| <section>Sometimes those droplets join with other droplets. Then they turn into larger drops. When that happens, gravity causes them to fall to Earth.</section> | ||
| <section>We call the falling water drops "rain." When the air is colder, the water may form snowflakes instead. Freezing rain, sleet or even hail can fall from clouds.</section> | ||
| </p>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nIcjzBmqdPKYSlBpLjLvk0wkv3Ot5jBoV2b0AAQGPlWpmleUJa9pvqsLqxp8oyDToQAUeVw39QeWw2vqGWbnsJWbHsAnVFfl0Nr6mK8thtfUzJWa3sGWatwBqjDllcHobfUxfKYb/wC3/BnrNW4ZZq3AGqMCOVQ2vqZPlkN/UzP81k+awDVGv8rhv6mR5ZDf1M2XmtB5rQBqjWeVw39TDyqO/qZtPNaDzWgDVGqeUx39TFeUx39TNv5rQea0Aao03lMdj6iHlEdj6jc+a0HmtAGqNI8oWx9RDrrY+o3fmsjzUAao0brrYxJVlsfwN95q3EPNW4LDVHnZ1nyQb/t8SiVaf8j64eJ6h5q3CPNW4A1R5nHPli+uPiK5S/kfXDxPTPNO4R5o3AGqPORk76YW33j+zPT5i1IoeaP+psM25K4PVoAaVG1AAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//9k=" alt=""> | ||
| <br/><br/> | ||
| <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRGwbAdRZVvkj6LdTQvjFJa-4j-M22BuZ0xcw&usqp=CAU" alt=""> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. How might describe these images in an alt tag? Why is this valuable to do? |
||
| <br/><br/> | ||
| <img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQfnOBq2drdtzpSOsg2tAdc4X2OehJL9gBeLQ&usqp=CAU" alt=""> | ||
| </aside> | ||
| </article> | ||
| </main> | ||
| <footer class="row"> | ||
| <div>more about clouds</div> | ||
| <ul> | ||
| <li><a href=" https://www.metoffice.gov.uk/weather/learn-about/weather/types-of-weather/clouds/what-are-clouds-and-how-do-they-form">Met Ofiice</a></li> | ||
| <li><a href=" https://en.wikipedia.org/wiki/Cloud">Wikipedia</a></li> | ||
| <li><a href="https://ssec.si.edu/stemvisions-blog/what-are-clouds ">Smithsonian Science Education Center </a></li> | ||
| </ul> | ||
| </footer> | ||
| </body> | ||
| </html> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it necessary to set the heading colour to black? What would happen if you removed this rule?