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

General Discussion

Liliana Leyva
Liliana Leyva
3,711 Points

I 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
Liliana Leyva
3,711 Points

Thank you Andren, I am going to have that in mind.

andren
andren
28,558 Points

Small 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
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
Adam Ryde
5,222 Points
def test_func():
\tprint("This is a test")