Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

having trouble with Headers and nav links

Whenever I change the size of the webpage in my browser the headers and nav links start rolling into one or above one another. I have put the html and css code below can anyone see where I have gone wrong. Sorry for the long post
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Carol Heal | Artist</title> <link rel="stylesheet" href="css/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Changa+One' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> </head>
<body> <header> <a href="index.html" id="logo"> <h1>Carol Heal</h1> <h2>Artist</h2> </a> <nav> <ul> <li><a href="index.html" class="selected">portfolio</a></li> <li><a href="about.html">about</a></li> <li><a href="contact.html">contact</a></li> </ul> </nav>
</header>

nav li { display: inline-block; }

nav a { font-weight: 800; padding: 15px 10px; }

I will post the css on a post after this one

Hi Carol,

Check this out: How to display code at Treehouse

Jeff

1 Answer

Hi Jeff thanks for the tip on how to display code will give it another go tomorrow thanks agian