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 trialCynthia DiFabion
3,801 PointsStage 6 - Style the Portfolio - browser not floating images per lesson instructions
code is saved in html and css files but images still display oversized. I'm wondering if this is a browser issue? Using Google Chrome version 39.0.2171.95
<ul id="gallery">
img {
max-width; 100%;
}
/**********************
PAGE: PORTFOLIO
***********************/
#gallery {
margin: 0;
padding: 0;
list-style: none;
}
#gallery li {
float: left;
width: 45%
margin: 2.5%;
background-color: #f5f5f5;
color: #bdc3c7;
}
Wayne Priestley
19,579 PointsBTW Cynthia,
Your missing a semicolon at the end of width:45%
Wayne Priestley
19,579 PointsWayne Priestley
19,579 PointsHi Cynthia,
I've edited your code so it appears correct in your post. Could you post all your css and html please.
Here is a link to explain how to use Markdown to post your code How to post code
If you look at the bottom of the box when your typing a reply you will see Markdown Cheatsheet that will also explain how to post your code.
You have to make sure you have a bit of space under your last line of text in your post. Then you add three back ticks followed by html or css depending on the type of code your inserting.
Then straight after your last line of code you add another three back ticks.
Remember to leave at least a few lines between any text at the top or bottom of your code.
Hope this helps.