Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML How to Make a Website Styling Web Pages and Navigation Polish the Navigation and Footer

I'm unable to apply styles to my list item and my footer.I'm unable to find where i did mistake.Could someone please hel

```<!DOCTYPE html> <html> <head>

<title>Aruns's Blog</title>
<meta charset="utf-8">
<link rel="stylesheet" href="/Users/Arun/Desktop/Arun/Arun-project/HowToBuildWebsite/css/normalize.css">
<link rel="stylesheet" type="text/css" href="<link href='https://fonts.googleapis.com/css?family=Josefin+Sans' rel='stylesheet' type='text/css'>">
<link href='https://fonts.googleapis.com/css?family=Josefin+Sans|Jim+Nightshade' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="/Users/Arun/Desktop/Arun/Arun-project/HowToBuildWebsite/css/main1.css">

</head> <body id="wrapper"> <header> <h1>Welcome To My Blog</h1> <nav> <ul> <li><a href="/Users/Arun/Desktop/Arun/Arun-project/HowToBuildWebsite/index3.html">HOME</a></li> <li><a href="aboutme.html">ABOUT ME</a></li> <li><a href="videos.html">VIDEOS</a></li> <li><a href="ImportantLink.html">IMPORTANT LINKS</a></li> <li><a href="mailto:arunbaskaran03@gmail.com?subject=Your%20Queries-&body=Hello,">Contact</a></li> </ul>

</nav>

</header> <footer> <a href="https://facebook.com/arun.karthik.7315"><img src="/Users/Arun/Desktop/Arun/Arun-project/HowToBuildWebsite/img/fb.png" alt="facebooklogo"></a> </footer> </body> </html>```

style sheet :

wrapper {

background-color: #cbb9bb;

}

wrapper h1{

text-align: center;
font-family: font-family: 'Josefin Sans', sans-serif;
padding: 10px 20px 5px 0;
border: double;
border-color: #888;

}

/* Creating style for unordered list*/

wrapper nav li {

float: left;
font-family:'Jim Nightshade', cursive;

}

wrapper nav li {

padding: 40px 20px 5px 0;
border: solid;
border-color: #888; 

}

/* Applying Style for <a> indent */

wrapper nav li a {

text-decoration: none;
color: #0000ff;
font-size: 30px;

}

nav a.wrapper , nav a:hover{ color: #ccc; }

footer{

width:5px;
height: 5px;

}

Simon Coates
Simon Coates
28,692 Points

did you put dots before the class CSS selectors? Or is that just display weirdness because you didn't use the markdown syntax to display your code here.

1 Answer

Steven Parker
Steven Parker
215,954 Points

I noticed one of your selectors is "nav a.wrapper".

:point_right: But "wrapper" is not a class, its the ID of the body element.

Since you don't need to specify the body explicitly anyway, that selector should probably just be "nav a".

Stev,

I'm getting confused here. When i should use section , id , class and div. Could you clarify. Also , about padding, Margin and border in lay man.

It will be grateful if you could help me with this.