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

HTML How to Make a Website Styling Web Pages and Navigation Style the Portfolio

I can't get the images on the right place and the bullet-dots won't get away. Could someone help me? :)

´´´ html <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Marc Drubbel | Junior Web Developer</title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700,400italic,800,700italic|Merriweather' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css">

</head>

<body> <header> <a href="index.html" id="logo"> <h1>Marc Drubbel</h1> <h2>Junior Web Developer</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> <div id="wrapper"> <section id="gallery"> <ul> <li> <a href="http://i.istockimg.com/file_thumbview_approve/38250840/5/stock-photo-38250840- mature-couple-on-roadtrip.jpg"> <img src="http://i.istockimg.com/file_thumbview_approve/38250840/5/stock-photo-38250840- mature-couple-on-roadtrip.jpg"> <p>Roadtrip</p> </a> </li> <li> <a href="http://i.istockimg.com/file_thumbview_approve/50369436/5/stock-photo-50369436-couple-on-top-of-a-mountain-shaking-raised-hands.jpg"> <img src="http://i.istockimg.com/file_thumbview_approve/50369436/5/stock-photo-50369436-couple-on-top-of-a-mountain-shaking-raised-hands.jpg"> <p>Top of the world</p> </a> </li> <li> <a href= "http://i.istockimg.com/file_thumbview_approve/48081118/5/stock-photo-48081118-brooklyn-bridge-and-manhattan-at-sunset.jpg"> <img src="http://i.istockimg.com/file_thumbview_approve/48081118/5/stock-photo-48081118-brooklyn-bridge-and-manhattan-at-sunset.jpg"> <p>Brooklyn Bridge</p> </a> </li> <li> <a href="http://i.istockimg.com/file_thumbview_approve/65620767/5/stock-photo-65620767-beautiful-winding-country-road-shaded-by-old-trees.jpg"> <img src="http://i.istockimg.com/file_thumbview_approve/65620767/5/stock-photo-65620767-beautiful-winding-country-road-shaded-by-old-trees.jpg"> <p>Country Road</p> </a> </li> <li> <a href="http://i.istockimg.com/file_thumbview_approve/67709383/5/stock-photo-67709383-office-desk-mockup.jpg"> <img src="http://i.istockimg.com/file_thumbview_approve/67709383/5/stock-photo-67709383-office-desk-mockup.jpg"> <p>Hipster Desk</p> </a> </li> <li> <a href="http://i.istockimg.com/file_thumbview_approve/26638385/5/stock-photo-26638385-highway-driving-at-night-with-long-exposure-light-trails.jpg"> <img src="http://i.istockimg.com/file_thumbview_approve/26638385/5/stock-photo-26638385-highway-driving-at-night-with-long-exposure-light-trails.jpg"> <p>Flashing Lights</p> </a> </li> </ul> </section> <footer> <a href="https://twitter.com/ItsMdr_"> <img src="img/twitter-wrap.png" alt="Twitter Logo"> </a> <a href="https://www.facebook.com/marc.drubbel"> <img src="img/facebook-wrap.png" alt="Facebook Logo"> </a> <p>© 2016 Marc Drubbel.</p> </footer> </div> </body> </html>

´´´ CSS /******************************** GENERAL *********************************/

body { font-family: 'Open Sans', sans-serif; }

wrapper {

max-width:940px; margin:0 auto; padding:0 5%; }

a { text-decoration:none; }

img { max-width:100%;

}

/******************************** HEADING *********************************/

logo {

text-align:center; margin:0; }

h1 { font-family:'Open Sans', sans-serif; margin: 15px 0; font-size:1.75em; font-weight:normal; line-height:0.8em; }

h2 { font-size:0.75em; margin: -5px 0 0; font-weight:normal; }

/******************************** Navigation *********************************/

nav { text-align:center; padding: 10px 0 0 10px; margin: 20px 0 0; }

/******************************** Footer *********************************/

footer { font-size:0.75em; text-align:center; padding-top: 50px; color: #ccc; }

/******************************** PAGE: PORTFOLIO *********************************/

gallery {

margin: 0; padding: 0; list-style:none; }

gallery li {

float: left; width: auto; margin: 2.5%; background-color: #f5f5f5; color: #bdc3c7; }

/******************************** COLORS *********************************/

/* Site body */ body { background-color: #fff; color: #999; }

/* Red header */ header { background:#aa2222; border-color:#599a68 }

/* Nav background on mobile */ nav { background-color:#951e1e; }

/* Logo text */ h1, h2{ color: #fff; }

/* links */ a { color:#aa2222; }

/* Nav link */ nav a, nav a:visited { color:#fff; }

/* Selected nav link */ nav a.selected, nav a:hover { color:#7f1a1a;

2 Answers

Don't forget to call the <li> element in your CSS. This is what will allow you to format the bullets and where the pictures are positioned.

Jason Anders
MOD
Jason Anders
Treehouse Moderator 145,860 Points

Hey Marc,

Where you are in this course, the bullet points are normal and supposed to be there. In a future video, Nick will show/teach you how to remove them.

As for the alignment, all I can see that may be causing an issue is a space after the a href in the third li tag. Sometimes the browsers don't like this.

See if that helps. :)