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 trialLiliana Leyva
3,711 PointsI am just testing how to put part of the code here.
.contact-info{
list-style: none;
padding:0;
margin: 0;
font-size: 0.9em;
}
4 Answers
Liliana Leyva
3,711 PointsThank you Andren, I am going to have that in mind.
andren
28,558 PointsSmall tip, put the name of the language you are embedding code from right after the three backticks that start the code block. That way you'll get proper code highlighting within the code block.
Like this:
```css
That will result in your code being highlighted like this:
.contact-info{
list-style: none;
padding:0;
margin: 0;
font-size: 0.9em;
}
It's not too noticeable on the small sample you posted and on CSS code in general, but for other things like JavaScript it can make it a lot easier to analyze the code at a glance, especially when there is a lot of it.
Liliana Leyva
3,711 Points#wrapper {
max-width: 940px;
margin: 0 auto;
padding: 0 5%;
}
a{
text-decoration:none;
}
img {
max-width: 100%;
}
Adam Ryde
5,222 Pointsdef test_func():
\tprint("This is a test")