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 trialFavour Uche
3,551 PointsMy columns do not stack up even when I resize the browser to the mobile scale version.
Please I really need help on this as it is really disturbing me. My code is the same as Nick's but when I resize my browser to the mobile size version, the images do not stack up instead they try to fit in as three columns. This also happens at the contact page and about page. I've done all I could but i still have a problem there. Can anyone please help me?
Favour Uche
3,551 PointsThank you seth for responding. Here is my code
@media screen and (min-width: 480px) { /Two column layout/ #primary { width: 50%; float:left; } #secondary { width:40%; float:left; } /Page Portfolio/ #gallery li { width: 28.3333%; } #gallery li:nth-child(3n+1) { clear:left; }
/* Page: About */
.profile-photo{
float:left;
margin:0 5% 80px 0;
}
}
@media screen and (min-width: 660px) {
/Page: Header/ nav { background:none; float:right; font-size:1.125em; margin-right:5%; text-align:right; width:45%; }
#logo { float: left; margin-left:5%; text-align:left; width: 45% }
h1 { font-size:2.5em; }
h2{ font-size:0.825em; margin-bottom:20px; }
header { border-bottom: 5px solid #8B0000; margin-bottom:60px; } }
Favour Uche
3,551 PointsI hope you Understand the code. Thank you and just incase, I checked my link stylesheet for the responsive.css and it is below the main.css but it still does not work.
5 Answers
seth aruby
10,111 PointsFavour, make sure you are utilizing your id's by adding them to the appropriate section elements in your html.
Favour Uche
3,551 Points<section id="primary"> <h3>General Information</h3> <p>I am currently open to business and available to book appointments at your flexibility. The cakes on my website are not the only cakes I bake so feel free to come to me on a specific type of cake you want. If you have any questions, do not hesitate to contact me!</p> <p>Please only use contact on urgent inquiries. Otherwise, Instagram and Email are the best way to reach me.</p> </section> <section id="secondary"> <h3>Contact Details</h3> <ul class="Contact-Info">
I did. is there any other solution you can think of?
Favour Uche
3,551 Points<section id="primary"> <h3>General Information</h3> <p>I am currently open to business and available to book appointments at your flexibility. The cakes on my website are not the only cakes I bake so feel free to come to me on a specific type of cake you want. If you have any questions, do not hesitate to contact me!</p> <p>Please only use contact on urgent inquiries. Otherwise, Instagram and Email are the best way to reach me.</p> </section> <section id="secondary"> <h3>Contact Details</h3> <ul class="Contact-Info">
I did. is there any other thing you can think of?
seth aruby
10,111 Pointsonly other thing i notice is that on #secondary he has float:right, not float:left.
Favour Uche
3,551 PointsI've floated it right but it's still not working. I honestly don't know what else to do..
seth aruby
10,111 PointsYour comments in your css may be the issue: where you have
{/Two column layout/...
you should have
{/*Two column layout */
Favour Uche
3,551 PointsHi Seth...I wanna thank you for your help..I actually stopped coding cause I got upset that I didn't know what the problem was but I just figured it out. I actually lost my responsive file and I don't know how that happened so I had to start over. But the problem with the columns was that I had to set my min width to a px higher than 660px..I set it to 960px and it started working. I'm so happy now and thank you for trying to assist me. God bless you
seth aruby
10,111 Pointsseth aruby
10,111 PointsFavour, please post your code and we'll see if we can figure this thing out!