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=",400" rel="stylesheet"> <link href="" 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=""><img src="img/twitter-wrap.png" alt="Twitter logo"></a> <a href=""><img src="img/facebook-wrap.png" alt="Facebook logo"></a> <p>© 2018 Iman Hunter</p> </footer> </div> </body> </html>

Any idea? Txs.

2 Answers

Jamie Reardon
Jamie Reardon
Front End Web Development Techdegree Student 9,084 Points

We need to see your HTML and CSS code referenced properly with the Markdown Cheatsheet.

Kevin Gates
Kevin Gates
14,666 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>
      <meta charset="UTF-8">