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 trialJoshua szkodlarski
8,604 PointsI'm having trouble remembering how to make the text bold he didn't show us and i haven't done that in a while
i can't remember
3 Answers
mikes02
Courses Plus Student 16,968 PointsFor example, if you want to set all paragraphs to a font weight of bold, you could use:
p {
font-weight: bold;
}
dnogmdehbp
Courses Plus Student 726 Pointsmikes02 answer is one way to do it; if you want to everything in the paragraph ("<p>") bold. If you just want one word bold on you site consider using
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit.<strong>the word that need to be bold</strong> Vestibulum non vehicula neque. Vivamus lobortis rutrum ipsum, vitae euismod erat. Donec sem elit, cursus vitae convallis luctus, consequat et ante. Suspendisse urna orci, congue ornare sem in, euismod ornare arcu.</p>
You can use less or more "bold" in you css, by using the following code:
p{
font-weight:800; // where 800 is a number in the range of 100 <> 900
}
cecil merrell
6,873 Pointsdont forget about the semicolon ;)
mikes02
Courses Plus Student 16,968 PointsOn a single rule like in the example a semicolon is not necessary, although if you prefer to have one you can do so without any issue.
cecil merrell
6,873 Pointsderp, I forgot about that, more out of habit I guess.
Joshua szkodlarski
8,604 PointsJoshua szkodlarski
8,604 Pointsthanks