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

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

how to select any paragraph

how to select any paragraph in css and make necessary changes

3 Answers

stjarnan
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
stjarnan
Front End Web Development Techdegree Graduate 56,488 Points

Hi Kaihan, as Richard showed you all you need to do to select your paragraphs is to use the element selector (p in this case). But if you need to style a specific paragraph you will need to give it a class or an id, example: <.p class="whateveryouwanttocallit"> content <./p> , and then in the css file you want to select this class by using the class selector which is a full stop ( . ).

Example on how you select the class in your css file: .whatyounamedtheclass { color: blue; }

I wish you good luck!

Richard Duncan
Richard Duncan
5,568 Points
p {
 // add styles here e.g.
font-size: 10pt;
}