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 trialJason Drury
5,861 PointsDebugging CSS Problems
My two columns were not showing side by side in the contact page and I was pulling my hair out trying to figure out why. I finally found it, I was using "float: right:" (notice it ends in a colon) vs "float: right;" (with the semi-colon). I was wondering to save me future grief if there is a way to catch an error like this? Workspaces did not complain nor did Sublime text editor. Thanks!
2 Answers
Jason Anders
Treehouse Moderator 145,860 PointsHey Jason,
Sadly, I don't believe there is a way. To be honest, those dang semi-colons often snag me up many times as well. I don't work much in CSS, but in PHP if you forget one, you basically just get a white screen... which usually means go "hunt for the missing semi-colon." :/
Compiled languages (i.e. Java) will return a syntax error if you miss one, unfortunately CSS is interpreted and not compiled. Sorry. :)
But if you do ever come across a solution... please let me know too! Lol.
Andreas Frost Nordstrøm-Hansen
2,443 PointsI think i remember it changes color according to the values. So if it's not the correct value it wont have a correct color. Try and compare the two situations. Does it have another color?