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

HTML How to Make a Website Customizing Colors and Fonts Write Hexadecimal Colors

not quite sure how to set this up

how do i set a color for paragraphs using css?

6 Answers

p {
  color: #ffffff;
}
Tommy Choe
Tommy Choe
38,156 Points

I know this is off-topic but how do you post up your code like that?

I want to upgrade from just copy-pasting like so - p { color: #ffffff; }

If you click the "Markdown Cheatsheet" button below the comment box it will show you how. Basically you wrap you code in backtics (```) and the language that you're using.

Tommy Choe
Tommy Choe
38,156 Points
<p> Got it. Thanks! <p>
ahmed suleiman
PLUS
ahmed suleiman
Courses Plus Student 11,685 Points

Hey Tommy you should type your code like this

(```CSS

p{ color:#000000; }

ahmed suleiman
ahmed suleiman
Courses Plus Student 11,685 Points

do like this opening like this '''CSS your code and closing like this '''

ahmed suleiman
PLUS
ahmed suleiman
Courses Plus Student 11,685 Points

Your can change CSS to any other language you want to post

Tommy Choe
Tommy Choe
38,156 Points
<p> Thank you! </p>
ahmed suleiman
PLUS
ahmed suleiman
Courses Plus Student 11,685 Points

when you set paragraphs using css you abbreviate the name of the element thus try to use p{},

thanks guys!