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
Dan Sinclair
1,420 PointsWhat do I need to change in order to correctly display my portfolio site in a flexbox container?
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>DAN SINCLAIR PORTFOLIO WEBSITE</title>
<link rel="stylesheet" href="dan-sinclair-flex-CSS.css">
</head>
<body>
<div>
<header>
<nav>
<ul>
<li><a href="http://dan-sinclair.com"> Projects</a></li>
<li><a href="http://dan-sinclair.com/about"> About</a></li>
<li><a href="http://dan-sinclair.com/cv-resume"> CV-Resume</a></li>
</ul>
</nav>
</header>
<div class=".flexcontainer">
<article>
<section>
<div>
<a href="converse-rings-pattern.html">
<img width="519px;" height="351px;" src="BlingRing_FrontShot.png"/>
</a>
</div>
<div>
<a href="PLAZM-Box-of-Rocks.html">
<img width="650px;" height="650px;" src="Box_Rocks_Cover_Backdrop_WEBthumb_02.png"/>
</a>
</div>
<div>
<a href="Plazaar-logo.html">
<img width="650px;" height="524px;" src="Plazaar_THUMB.png"/>
</a>
</div>
</section>
</article>
</div>
</div>
</body>
</html>
.flexcontainer {
display: flex;
flex-direction: row;
justify-content: flex-start;
flex-wrap: wrap;
flex-flow: row wrap;
}
1 Answer
bleedcmyk
5,945 PointsI havent looked too closely, but I noticed that you have
<div class=".flexcontainer">
You cant use periods in the class name. You want just "flexcontainer" and then in your css, you target it with .flexcontainer
Dan Sinclair
1,420 PointsDan Sinclair
1,420 Pointsoh wow, I can't believe I missed that! Thank you!
Dan Sinclair
1,420 PointsDan Sinclair
1,420 PointsFor some reason it still appears as default html; each image stacking on top of each other at the left of the browser page. I am using chrome, so I don't think it's a browser issue of not supporting flexbox. I'll keep looking for what might need to change.