Exercise 7 Html
Im trying to study for my Html / CSS course and I need some help to understand this question.
1145 Exercise 6
In this assignment you will make edits to an existing stylesheet to incorporate a few of the layout
techniques you learned about in this unit. There will be starter files located in Blackboard for this
assignment, so please download them to begin your work. Your page should look like the example you
can view in Blackboard.
Perform the following tasks by editing the existing styles.css and index.html file
1. The navigation bar should scroll with the content and then become stuck at the top of
the viewport when it reaches it.
2. The image that is inside the article should have text wrapped around it.
3. The <article> and <aside> elements should be contained in a flexible box. This box should be
a flexible so that if the browser window shrinks smaller the content will become
narrower.
4. The photographs should display as a two column grid with a 1 pixel gap between the
images.
5. Add new paragraphs after the last <p> element in index.html to define the Flexbox layout
module, Grid Layout, and the Multiple Column Layout specification.
6. Save your changes in both styles.css and index.html.
7. This assignment doesnt need uploaded to the web server, just submit a zip folder that has your
styles.css, index.html, and the images folder contained in it. (Windows: hold ctrl and select the
two files and the folder, with them highlighted, right-click and choose Send to -> Compressed
folder. Mac: hold cmd and select the two files and the folder, with them highlighted, right-click
and then choose Compress items.)
8. Once finished compressing your files, submit the resulting zipped folder to Blackboard for
grading by clicking on the HW6 link.
Stylessheet.css
body {
background-color: #fff;
color: #333;
margin: 0;
font: 1.2em / 1.2 Arial, Helvetica, sans-serif;
}
img {
max-width: 100%;
display: block;
}
.logo {
font-size: 200%;
padding: 50px 20px;
margin: 0 auto;
max-width: 980px;
}
.flex {
margin: 0 auto;
padding: 0 20px;
max-width: 980px;
}
nav {
background-color: #000;
padding: .5em;
}
nav ul {
margin: 0;
padding: 0;
list-style: none;
}
nav a {
color: #fff;
text-decoration: none;
padding: .5em 1em;
}
.photos {
list-style: none;
margin: 0;
padding: 0;
}
.feature {
width: 200px;
}
Index.html
<!DOCTYPE html>
<html>
<head>
<meta charset=”utf-8″>
<title>Layout Task</title>
<link href=”styles.css” rel=”stylesheet” type=”text/css”>
</head>
<body>
<div class=”logo”>
My exciting website!
</div>
<nav>
<ul>
<li>
<a href=””>Home</a>
</li>
<li>
<a href=””>Blog</a>
</li>
<li>
<a href=””>About us</a>
</li>
<li>
<a href=””>Our history</a>
</li>
<li>
<a href=””>Contacts</a>
</li>
</ul>
</nav>
<main class=”flex”>
<article>
<h1>
An Exciting Blog Post
</h1>
<img src=”images/balloon-sq6.jpg” alt=”placeholder” class=”feature”>
<p>Veggies es bonus vobis, proinde vos postulo essum magis kohlrabi welsh onion daikon amaranth tatsoi tomatillo melon
azuki bean garlic.</p>
<p>Gumbo beet greens corn soko endive gumbo gourd. Parsley shallot courgette tatsoi pea sprouts fava bean collard greens
dandelion okra wakame tomato. Dandelion cucumber earthnut pea peanut soko zucchini.</p>
<p>Turnip greens yarrow ricebean rutabaga endive cauliflower sea lettuce kohlrabi amaranth water spinach avocado daikon
napa cabbage asparagus winter purslane kale. Celery potato scallion desert raisin horseradish spinach carrot soko.
Lotus root water spinach fennel kombu maize bamboo shoot green bean swiss chard seakale pumpkin onion chickpea gram
corn pea. Brussels sprout coriander water chestnut gourd swiss chard wakame kohlrabi beetroot carrot watercress.
Corn amaranth salsify bunya nuts nori azuki bean chickweed potato bell pepper artichoke.</p>
<p>Nori grape silver beet broccoli kombu beet greens fava bean potato quandong celery. Bunya nuts black-eyed pea prairie
turnip leek lentil turnip greens parsnip. Sea lettuce lettuce water chestnut eggplant winter purslane fennel azuki
bean earthnut pea sierra leone bologi leek soko chicory celtuce parsley jícama salsify.</p>
<p>Celery quandong swiss chard chicory earthnut pea potato. Salsify taro catsear garlic gram celery bitterleaf wattle
seed collard greens nori. Grape wattle seed kombu beetroot horseradish carrot squash brussels sprout chard.</p>
</article>
<aside>
<h2>
Photography
</h2>
<ul class=”photos”>
<li>
<img src=”images/balloon-sq1.jpg” alt=”placeholder”>
</li>
<li>
<img src=”images/balloon-sq2.jpg” alt=”placeholder”>
</li>
<li>
<img src=”images/balloon-sq3.jpg” alt=”placeholder”>
</li>
<li>
<img src=”images/balloon-sq4.jpg” alt=”placeholder”>
</li>
<li>
<img src=”images/balloon-sq5.jpg” alt=”placeholder”>
</li>
</ul>
</aside>
</main>
</body>
</html>
Pictures
This link is how it is suppose to look
To begin, you will need to download the starter files above. Please right-click on them, and choose Save links as, and then save the files in a directory on your computer. Once you have saved all of the files into this directory, create a new folder called images, and then take all of the JPG files, and move them into this images folder. You should now see the styles.css file, the index.html file, and the images folder with all of the JPGs in it. You can now begin to make your edits using the directions linked above.