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 trialChristopher Borchardt
2,908 PointsGallery formatting
I am having a similar problem to some of the others here. I've looked at a couple of questions and my code looks like it should be correct.
I am pretty sure I am missing something silly like a " or , or soemthing similar. but I can't seem to find it.
I took a snapshot of my code.
8 Answers
Giuseppe Privitera
4,078 PointsOKKK I finally got it!! This was harder than what I expected. OK Go on your Main.css and under #gallery li {
gallery li {
float: left; width 45%; ( This has to be this way ---> width: 45%; note the 2 dots after "width" margin: 2.5%; background-color: #f5f5f5; color: #bdc3c7; }
Giuseppe Privitera
4,078 PointsYour questions is unclear, but this is how the index.html code is supposed to look. Hope it helps. E-mail me if you need further help. (My e-mail is on my profile page)
Code:
<!DOCTYPE html> <html> <head> <meta charset = "utf-8"> <title> Chris Borchardt | Designer </title> <link rel="stylesheet" href="css/normalize.css"> <link href='https://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400,400italic,700italic,800' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="css/main.css"> <link rel="stylesheet" href="css/responsive.css"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> </head> <body> <header> <a href="index.html" id="logo"> <h1> Chris Borchardt </h1> <h2>Designer</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> <ul id="gallery"> <li> <a href="img/numbers-01.jpg"> <img src="img/numbers-01.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li> <li> <a href="img/numbers-02.jpg"> <img src="img/numbers-02.jpg" alt=""> <p>Experimentation with color and texture.</p> </a> </li> <li> <a href="img/numbers-06.jpg"> <img src="img/numbers-06.jpg" alt=""> <p>Playing with blending modes in Photoshop.</p> </a> </li> <li> <a href="img/numbers-09.jpg"> <img src="img/numbers-09.jpg" alt=""> <p>Drips created using Photoshop brushes.</p> </a> </li> <li> <a href="img/numbers-12.jpg"> <img src="img/numbers-12.jpg" alt=""> <p>Creating shapes using repetition.</p> </a> </li> </ul> </section> <footer> <a href="https://teamtreehouse.com/home"><img src="img/twitter-wrap.png" alt="Twitter Logo" class="social-icon"></a>
<a href="https://teamtreehouse.com/home"><img src="img/facebook-wrap.png" alt="Facebook Logo" class="social-icon"></a>
<p>© 2016 Chris Borchardt</p>
</footer>
</div>
</body> </html>
Christopher Borchardt
2,908 PointsI really need to stop posting questions when exausted. i forgot to put the actual problem... the problem is the gallery formatting is not showing up correctly, the pictures are not sizing, and the background color changes aren't displaying
Giuseppe Privitera
4,078 PointsOk, no problem, ahah. I'll get in touch with you in a few minutes!
Giuseppe Privitera
4,078 PointsDo you want the all website to have this font?? font-family: 'BILBO SWASH CAPS', cursive;
Christopher Borchardt
2,908 Pointsthat should be only on H1
Giuseppe Privitera
4,078 PointsInstead of having this: <link href='https://fonts.googleapis.com/css?family=Changa+On | Open+Sans:400,400italic,700italic,800' rel='stylesheet' type='text/css'>
Have this: (note the [ %O7C ] before Open+Sans:400,400italic,700italic,800'..................) <link href='https://fonts.googleapis.com/css?family=Changa+One%7COpen+Sans:400,400italic,700italic,800' rel='stylesheet' type='text/css'>
Christopher Borchardt
2,908 Pointsany suggestions?
Christopher Borchardt
2,908 Pointsafter looking closer, the only formatting that isn't working is the picture floating. They do re-size when the page is moved, the colors look correct, but the pictures are all in 1 column.
Christopher Borchardt
2,908 Pointsafter looking closer, the only formatting that isn't working is the picture floating. They do re-size when the page is moved, the colors look correct, but the pictures are all in 1 column.
Christopher Borchardt
2,908 Pointsyou are my hero, i spent literally all day trying to find that
Giuseppe Privitera
4,078 PointsNo problem. (I was going mental too)
Giuseppe Privitera
4,078 PointsGiuseppe Privitera
4,078 PointsYou forgot to add ":" after width