# Header and footer help

**URL:** <https://forum.freecodecamp.org/t/header-and-footer-help/28833>\
**Category:** General\
**Created:** [August 17, 2016, 7:02am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833 "2016-08-17T07:02:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![timmparsons](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/timmparsons/32/64775_2.png) [@timmparsons](https://forum.freecodecamp.org/u/timmparsons)\
**Post date:** [August 17, 2016, 7:02am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/1 "2016-08-17T07:02:40Z")

</div>

newbie here again.

I have a nav list in the header which i’m ok with the positioning but the footer nav element is on the right and i’m struggling to shift it over to the left. any help would be greatly appreciated. here is the html and css. If anything else looks wrong, please let me know:

**HTML**

HomeWorkAboutContact

```
<a href="#">Home</a>
<a href="#">Work</a>
<a href="#">About</a>
<a href="#">Contact</a>
</nav>
</div>
	
<div id="Copyright"> All Content Copyright 2016 </div>

```

**CSS**

nav{  
float: right;  
font-family: ‘Open Sans’, sans-serif;  
font-size: 15px;  
letter-spacing: 0.09em;  
margin: 30px 30px 0 0;

}

.header ul a {  
margin-left: 20px;  
font:  
size: 14px;  
font-weight: 700;  
text-transform: uppercase;  
text-decoration: none;  
color: black;  
}  
h1 {  
text-align: center;  
font-size: 55px;  
font-family: ‘Open Sans’, sans-serif;  
font-weight: 100;  
color: white;  
text-transform: uppercase;  
letter-spacing: 0.05em;  
margin: 90px 40 20px 40px;  
clear: both;  
}

span {  
display: inline-block;  
margin-top: 100px;  
spacing: 0.5em;  
border: white solid 10px;   
padding: 2 5 2 5;

}  
.quote {  
line-height: 4px;  
text-align: center;  
font-size:18px;  
font-family: ‘Open Sans’, sans-serif;  
text-transform: uppercase;  
color: white;  
letter-spacing: 0.05em;   
}

body p{  
height: 200px;  
width: 550px;  
padding: 30px;  
color: black;  
font-size: 20px;  
font-family: ‘Open Sans’, sans-serif;  
display: block;  
}

footer {  
height:100px;  
width: 100%;  
background: url(Pictures/74H.jpg) center;  
background-size: cover;  
margin: -10;  
padding: 5 5 5 5;   
}

footer a{  
float:left;  
}

.lockup {  
padding: 30px;   
}  
#Copyright {  
float: left;  
font-family: ‘Open Sans’, sans-serif;  
margin: 38 0 0 0;  
font-size: 10px;  
text-transform: uppercase;  
color: rgba(0,0,0,0.4);  
}

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [August 17, 2016, 7:09am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/2 "2016-08-17T07:09:10Z")

</div>

Hi, @timmparsons. Do you have a Codepen link for this? Your code doesn’t render properly here because it’s not formatted.

> **[Forum Code Formatting](https://forum.freecodecamp.org/t/forum-code-formatting/25574)**
>
> This post is modeled on http://forum.freecodecamp.com/t/markdown-code-formatting/18391, but modified for the slight differences between the Forum and Gitter. If you are interested in using Spoiler blocks, check this post: Spoilers. You can post code...

---

<div class="post-metadata">

**Author:** ![timmparsons](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/timmparsons/32/64775_2.png) [@timmparsons](https://forum.freecodecamp.org/u/timmparsons)\
**Post date:** [August 18, 2016, 5:25am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/3 "2016-08-18T05:25:20Z")

</div>

Here is a codepen link [http://codepen.io/timmparsons/pen/akrxNJ](http://codepen.io/timmparsons/pen/akrxNJ)

On codepen, the ‘Tester // Los Angeles’’ won’t go under the main heading and I can’t get the footer nav to move to the left or in a list.

Any suggestions to help or if you notice anything else wrong would be greatly appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [August 18, 2016, 5:50am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/4 "2016-08-18T05:50:40Z")

</div>

Your `<div>`'s class name and the selector in the CSS don’t match; one is `Quote` but the other is `quote`.

Avoid using spaces in id names (or maybe you meant using class?).

Always specify units in CSS (`px`, `em`, etc.). I saw a `margin: 38 0 0 0;`. But units are not required for 0.

Add `display: inline-block;` to the copyright `<div>`, then `margin: 38px 0 0 0;` (this one lacked units)

---

<div class="post-metadata">

**Author:** ![timmparsons](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/timmparsons/32/64775_2.png) [@timmparsons](https://forum.freecodecamp.org/u/timmparsons)\
**Post date:** [August 18, 2016, 6:13am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/5 "2016-08-18T06:13:35Z")

</div>

Thanks. The footer nav still doesn’t move to the left for me.

Also, how do I remove the blue and underline from the nav links?

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [August 18, 2016, 7:56am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/6 "2016-08-18T07:56:03Z")

</div>

Oh, I think I misread about the footer nav. Sorry.

You can remove the link underlines with

```css
/* or `nav a` */
a {
  color: black; /* or any other color */
  text-decoration: none;
}

```

Your `<nav>` has a `float: right;` property. You can move the `<nav>` in the footer by unsetting its `float`.

```css
footer nav {
  float: unset;
}

```

---

<div class="post-metadata">

**Author:** ![kblock-dev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kblock-dev/32/13895_2.png) [@kblock-dev](https://forum.freecodecamp.org/u/kblock-dev)\
**Post date:** [August 18, 2016, 1:20pm UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/7 "2016-08-18T13:20:40Z")

</div>

I noticed a few things that may help when you’re using CodePen.

- Remove the `<head>` section from the HTML section and go into Settings -\> HTML -\> Stuff for `<head>` and place this link `<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">` in it.
- Remove the link to site.css all together since you can’t link to a local file from the pen
- Either remove this line in your css `background: url(Pictures/74H.jpg) center;` or find a web linked version of it since it’s also attempting to link to a local file that doesn’t exist.
- You have a class named ul. Just an FYI that it’s bad practice to name a class the same as an element. It could make it confusing and difficult to troubleshoot issues.

The HTML section of the pen is used as the `<body>` portion of the site you’re trying to build so any local links won’t work and any links to stylesheets will override anything that you have in your CSS section.

---

<div class="post-metadata">

**Author:** ![timmparsons](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/timmparsons/32/64775_2.png) [@timmparsons](https://forum.freecodecamp.org/u/timmparsons)\
**Post date:** [August 18, 2016, 3:57pm UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/8 "2016-08-18T15:57:06Z")

</div>

Thanks for all your help. This forum is amazing!

---

<div class="post-metadata">

**Author:** ![jwilkins.oboe](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/jwilkins.oboe/32/179497_2.png) [@jwilkins.oboe](https://forum.freecodecamp.org/u/jwilkins.oboe)\
**Post date:** [January 16, 2021, 4:41am UTC](https://forum.freecodecamp.org/t/header-and-footer-help/28833/9 "2021-01-16T04:41:21Z")

</div>

Closed on January 16, 2021, 4:41am UTC


