

Create files: index.html and css/style.css. Use VS code to generate default html in the index.html file (hint: use !
You can find all content in the files located in the content directory.
Code the semantic html to provide document structure:
header Home
nav
figure
main
—- section Recent Blogs
—- section About
footer
header element and supply the title and subtitle using content from the titles-captions.txt files.nav element. Add an unordered list tag (ul) inside each of the div elements. The list on the left should contain list items (li) with content and links (a) to Home, Recent Blogs, and About. These will be linked to internal links. The list items on the right should contain links to “Twitter”, “Facebook” and “Github” and will be external links.img) and a caption (figcaption). The image source is “images/backlit-clouds-dark-831x200.jpg” and the caption is in the titles-captions.txt file.img) and a paragraph (p). The images can be found in the images directory and the content for paragraphs in the recent-blogs.txt file. The order of the images is : hudson-river.., fort-point…, prince-william….div tag that will by styled to be a call to action (CTA) area with a child button element and make it’s content “Click to find out more”.Copyright © 2019-20 and the contents on the right should contain your name.#<id> to the href. You can set the home link href to # string to cause the page to go to the start of the document. Test this out by clicking on these links.t.png file in images directory.
<link rel="icon" type="image/png" href="images/t.png">
body {
height: 100%;
}
* selector and set box sizing to border box
```1.2 em and text transform to uppercase on all head tags
h2,
h3,
h4,
h5,
h6 {
margin: 0;
padding:0;
line-height: 1.2em;
text-transform: uppercase;
}
h4 {
padding: 5px;
}
ul margin and padding to 0
ul {
margin: 0;
padding: 0;
}
main margin top and bottom to 0 and left and right to 20px
main {
margin: 0 20px;
}
p padding top and bottom to 0 and left and right to 5px
p {
padding: 0 5px;
}
h1 {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
font-size: 3rem;
}
h2 {
font-family: Arial, Helvetica, sans-serif;
margin: 0;
padding: 0 10px 15px 10px;
letter-spacing: .2rem;
font-size: 1rem;
}
p,
nav,
div,
a,
figcaption,
span {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
page-links and assign it to the ul that contains the navigation internal links.ul so that it will clear the floated elements inside it
ul.page-links {
list-style-type: none;
margin: 0;
padding: 0;
overflow:hidden;
background-color:#333;
}
.page-links li {
float: left;
}
.page-links a {
display: block;
background-color: black;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
.page-links a:hover {
background-color: gray;
color: white;
}
- add a class active to the home link and style that
.page-links .active {
background-color:#ffbf00;
color: black;
}
social-links and assign it to the ul that contains the social links. Use display:inline-block on the list items li to cause them to layout horizontally following the pattern in the Skills 1-4 Layout Horizonal assignment.ul to 48px, so that the text will center vertically.
ul.social-links {
list-style-type: none;
/* trick to getting text to center */
/* set height = line-height */
height: 48px;
line-height: 48px;
}
5rem) with a background color of #ffbf00 and centered text alignment.
.social-links li {
display: inline-block;
width: 5rem;
background-color: #ffbf00;
text-align: center;
}
The social links a tags should have black text and remove the default underline with text-decoration: none.
.social-links a {
color: black;
text-decoration: none;
}
On hovering the a’s the text should be white and hovering the li’s the background color should be gray.
.social-links a:hover {
color: white;
}
.social-links li:hover {
background-color: gray;
}
position:relative on the nav in order to apply absolute positioning on the children (page links and social links) See the Skills 1-4 Layout Horizontal assignment where the footer used absolute positioning to move contents to left and right for example nav {
position: relative;
height: 48px;
background-color: black;
}
div that contains the page links a class of nav-left and the div that contains the social links should be given a class of nav-rightposition: absolute to both nav-left and nav-rightnav-left will be positioned at right:0, top:0 and nav-right will be positioned at left:0, top:0
```
.nav-right {
position: absolute;
right: 0;
top: 0;
}.nav-left { position: absolute; left: 0; top: 0; }
6. Big Image Figure: set the margin to 0 on the figure and set the width to 100% and height to 200px. This ensures that the image covers the full width of the page no matter how big the window is.
.big-image { margin: 0; }
.big-image img { width: 100%; height: 200px; }
7. Table layouts are used for both the Recent Blogs and About sections. The table layout will be controlled by the number of rows and columns as well as the amount of content.
- create a class named `table` and assign it to sections containing **Recent Blogs** and **About**. Create a table class selector in the style sheet and give it the following properties and values:
.table { display: table; height: 100%; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 10px; }
- create a row class and assign it to the divs that are direct children of the section elements and give them the rows the following style
.row { display: table-row; }
- create a `col` class and add the `col` class to any `div`'s that are children of the `row` class and then style the cols and `p` children with the following
.col { display: table-cell; border: 1px solid lightgray; border-radius: 10px; }
.col p {
font-size: 1rem;
} ``` 8. Float the text in the **Recent Blogs** section around the images by adding a `wrapped` class to the images and set them to `display:block` and `float:left`. Add 5px padding. See the **Skills 1-6 images-float-text** for reference. ``` .wrapped {
display: block;
float: left;
padding: 5px; } ```
cta class to the div around the button and give it a width of 11rem, margin:auto and center align the text
.cta {
width: 11rem;
margin: auto;
text-align:center;
}
cta-button class to the button and make it a block element with a heigth of 40px, a line height of 40px, a red backgound, white text and border-radius of 30px
.cta-button {
display: block;
height: 40px;
line-height: 40px;
background: red;
color: white;
border-radius: 30px;
}
footer {
background-color: #333;
height: 4rem;
color: white;
padding: 20px;
position: relative;
width: 100%;
}
footer-left and footer-right class and assign them to the 2 div’s nested in the footerfooter-right and footer-leftleft: 0.50% on footer-leftright: 0.50% on footer-right
```
.footer-left {
position: absolute;
left: 0.50%;
}.footer-right { position: absolute; right: 0.50%; } ```