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 trialLiv Allen
1,972 Pointsnot quite sure how to set this up
how do i set a color for paragraphs using css?
6 Answers
Armando Barajas
7,766 Pointsp {
color: #ffffff;
}
ahmed suleiman
Courses Plus Student 11,685 Pointsp{
color:#000000;
}
ahmed suleiman
Courses Plus Student 11,685 PointsHey Tommy you should type your code like this
(```CSS
p{ color:#000000; }
ahmed suleiman
Courses Plus Student 11,685 Pointsdo like this opening like this '''CSS your code and closing like this '''
ahmed suleiman
Courses Plus Student 11,685 PointsYour can change CSS to any other language you want to post
Tommy Choe
38,156 Points<p> Thank you! </p>
ahmed suleiman
Courses Plus Student 11,685 Pointswhen you set paragraphs using css you abbreviate the name of the element thus try to use p{},
Liv Allen
1,972 Pointsthanks guys!
Tommy Choe
38,156 PointsTommy Choe
38,156 PointsI 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; }
Armando Barajas
7,766 PointsArmando Barajas
7,766 PointsIf 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
38,156 PointsTommy Choe
38,156 Points<p> Got it. Thanks! <p>