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 trialJoshua Harris
Full Stack JavaScript Techdegree Student 3,674 PointsImages will not resize please help!
So i have gone over my code countless times and read all the responses to similar questions however nothing seems to work for me. My images do not go side by side and do not resize when i open the preview. here is my code:
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Josh Harris - Web Design</title> <link rel="stylesheet" href="CSS/normalize.css"> <link href='http://fonts.googleapis.com/css?family=Orbitron|Exo:400,400italic,700,700italic' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Slabo+27px' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="CSS/main.css"> <style> a { text-decoration: none; }
wrapper {
max-width: 940px; margin: 0 auto; padding: 0 5%; }
</style>
</head>
<body style="background-color: black;">
<header>
<a href="index.html" id="logo">
<h1>Josh Harris</h1>
<h2>Web Design</h2>
</a>
<nav>
<ul>
<li><a href="index.html" class ="selected"></a>Portfolio</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.</p>
</a>
</li>
<li>
<a href="img/numbers-02.jpg">
<img src="img/numbers-02.jpg" alt="">
<p> Blending Modes</p>
</a>
</li>
<li>
<a href="img/numbers-06.jpg">
<img src="img/numbers-06.jpg" alt="">
<p> 80's Glow</p>
</a>
</li>
</ul>
</section>
<footer>
<a href="http://facebook.com/josh.harris.73700"><img src="img/facebook-wrap.png" alt="Facebook Logo"></a>
<p>© 2015 Josh Harris.</p>
</footer>
</div>
</body>
</html>
/*************************** GENERAL ****************************/
body { font-family:'Slabo 27px', 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: 'Orbitron', sans-serif; margin: 15px 0; font-size: 1.75em; font-weight: normal; line-height: 2em; text-align: center; }
h2 { font-family: 'Orbitron', sans-serif; font-size: 1.75em; margin: -5px 0 0; font-weight: normal; text-align: center;
}
/*************************** NAVIGATION ****************************/
nav { text-align: center; padding; 10px 0; margin: 20px 0 0; font-size: 1.5em;
}
/*************************** 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: 45%; margin: 2.5%; background-color: #f5f5f5; color: #bdc3c7;
}
/*************************** COLORS ****************************/
/* site body */ body { background-color: black; color: #999; }
/* gold header*/ header { background: #ad9f3a; border-color: #ffffff; }
/* logo text */ h1, h2 { color: #fff; }
/* nav mobile background color */ nav { background: #ad9f3a; }
/* links */ a { color: #ad9f3a }
/* nav link */ nav a, nav a:visited { color: #fff }
/* selected nav link */ nav a.selected, nav a:hover { color: blue; }
pi R
12,720 PointsCan you be more precise about the problem you're having? because when i'm testing your code, the images goes side by side and resize... i took a screenshot: http://hpics.li/352d143
Joshua Harris
Full Stack JavaScript Techdegree Student 3,674 PointsI have a feeling it might be a problem with workspace because things very similar to this have happened over and over again but my code is correct. If i wait a day and try again without changing anything the code will then miraculously work, however this time even that didn't happen. Ive just tried once more with the same code and it still doesn't work. I am using safari on a macbook pro 2015. Any ideas?
Joshua Harris
Full Stack JavaScript Techdegree Student 3,674 PointsSo I've tried once again and finally it worked! Thank you for your quick response and I'm sorry to waste your time however i don't think the changes should be happening 24 hours after i apply the backend changes. any idea why this is happening in workspace?
pi R
12,720 PointsNo problem dude. I'm not a safari user so I can't help you on that. But I had some problems with workspaces too. Sometimes it's just a bad day , and for the rest of the month it just works fine ^^. However, try to reach the Treehouse support and explain them your problem, maybe they'll find a solution !
enjoy your course :) bye !
Joshua Harris
Full Stack JavaScript Techdegree Student 3,674 PointsJoshua Harris
Full Stack JavaScript Techdegree Student 3,674 PointsFYI I did include the hashtags before both gallery elements in my code, so i don't know why it shows up differently here