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 trialNicholas Richards
1,299 PointsContact Details dont move to the right?
Checked code loads of times and when i resize the browser (to make it larger) the contact details dont move along side the general information like the do in the video. Any ideas? thanks
@media screen and (min-width: 480px) {
/*********************
TWO COLUMN LAYOUT
************************/
*primary {
width: 50%;
float: left;
}
*secondary {
width: 40%;
float: right;
}
}
@media screen and (min-width: 660px) {
}
Moderator Edit: Added Markdown to the code so that it is readable in the Community Forum. Please refer to the Markdown CheatSheet when posting code to the Community for the proper Markdown needed so others can read the code.
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHi Nicholas,
First I added Markdown to your post so that the code is readable here in the Community. Please refer to the Markdown CheatSheet when posting code.
As to your question... for some reason your primary
and secondary
are prefixed with an asterisk? Which is why it is not working. Remember, if it's a class, the selector needs to be prefixed with a period
, and if it's an ID, then it needs a number sign (hash symbol)
.
Fix that up and it should be good.
Keep Coding! :)
Nicholas Richards
1,299 PointsNicholas Richards
1,299 PointsThanks. I had just found this before i read your answer. Stupid mistake!! Thanks again