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

Immanuel Jaeggi
Immanuel Jaeggi
5,164 Points

Aligning of images with float

The last two images do not appear side by side as they should. Here is my code:

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> </head> <title>Iman Hunter | Designer </title> <link rel="stylesheet" href="css/normalize.css"> <link href="https://fonts.googleapis.com/css?family=Alegreya+Sans:300,400" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Dosis:500" rel="stylesheet"> <link rel="stylesheet" href="css/main.css"> <body> <header> <a href="index.html" id="logo"> <h1>Iman Hunter</h1> <h2>Designer</h2> </a> <nav id="nav-bar"> <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> <ul id="gallery"> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with colour and texture.</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt=""> <p>Experimentation with colour and texture.</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <li><img src="img/numbers-06.jpg" alt=""></li> <p>Experimentation with colour and texture.</p> </a> </li> <li> <a href="img/numbers-09.jpg"> <li><img src="img/numbers-09.jpg" alt=""></li> <p>Experimentation with colour and texture.</p> </a> </li> </ul> </section> <footer> <a href="http://twitter.com/ratheroutnow"><img src="img/twitter-wrap.png" alt="Twitter logo"></a> <a href="http://facebook.com/imanhunter"><img src="img/facebook-wrap.png" alt="Facebook logo"></a> <p>Ā© 2018 Iman Hunter</p> </footer> </div> </body> </html>

Any idea? Txs.

2 Answers

Kevin Gates
Kevin Gates
15,053 Points

Can you get your original code, then use the Markdown Cheatsheet (see below the comment box) to style your code better?

You will use three "backticks" which is this symbol: ` , located to the left of the number 1 on a standard keyboard.

backtick backtick backtick

Your code

backtick backtick backtick

Additionally, if you add the language you're working with (HTML, CSS, JavaScript, CSharp) to the right of the first set of backticks, then it'll add some helpful syntax highlighting. For you it's like this:

backtick backtick backtickHTML

Your Code

backtick backtick backtick

For instance, it will begin to look like this:

<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
   </head> 
......