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
John Lukacs
26,806 PointsCss float colapse when browser window is resized down
How do I make an image stay floated left when the browser is resized down to less then 700px
1 Answer
John Lukacs
26,806 Points/* Global Imports */
@import 'base/index';
@import 'layout/index';
@import 'components/index';
ul li, li a {
list-style:none;
text-decoration:none;
padding: 10px;
margin:0;
font-family:Gotham, "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size:14px;
color: #07F215;
padding-top: 30px;
text-shadow: 1px 1px black;
}
ul {
display:flex;
flex-direction:column;
justify-content:center;
margin: 0;
flex-wrap:wrap;
background:#08EDF1;
width: 100px;
height: 800px;
float:left;
}
.tank{
float:left;
display:block;
}
rydavim
18,814 Pointsrydavim
18,814 PointsYou'll probably need to post your code, or better yet a workspace snapshot, in order to get an answer to this question. It sounds like perhaps there is a media query that is effecting your float at a particular breakpoint? Without seeing the behavior, it's hard to say what might be causing your issue.