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
Christopher Palacios
3,110 PointsWhat am I doing wrong here?
/* Tablets to Desktop */
@media only screen and (max-width 769px) {
.logo {
float: left;}
.main-nav {
float: right;}
.main {
width: 40.425531914894%;
}
.extra {
width: 23.404255319149%;
display: block;
}
}
Christopher Palacios
3,110 PointsThanks...yes, yes, yes I should know better. Apologies. I DO use markdown in Open Journal Mac Desktop App. -all the best
Wayne Priestley
19,579 PointsHey Christopher,
Is this part of a code challenge?
Can you explain a little more about what you want to do and give us the rest of your html and css please.
Your maybe having problems only due to a small typo.
@media only screen and (max-width 769px) /* you need to add : after max-width */
@media only screen and (max-width: 769px)
Hope this helps.
1 Answer
Ian Hattendorf
7,715 PointsYou're missing a colon in the media query between max-width and 769px: @media only screen and (max-width: 769px)
Christopher Palacios
3,110 Pointsthanks ian, good catch. I guess I should take a break. I've been going at it since 5 am. playing catch-up.
my brain doesn't hurt but my eyes are clearly failing me.
Wayne Priestley
19,579 PointsWayne Priestley
19,579 PointsHi Christopher,
I've edited your code so it appears correct in your post.
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.