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
Alfons Pineda
Courses Plus Student 1,287 PointsMy String won't go to a different line.
I'm using CSS to insert text with a string. I want to to go to the next line under the paragraph element. Would someone help?
1 Answer
Elliott Frazier
Courses Plus Student 9,647 PointsYou can change the display to block.
p:after {
content: "String";
font-size:1.5em;
font-color:grey;
display: block;*
}
Alfons Pineda
Courses Plus Student 1,287 PointsAlfons Pineda
Courses Plus Student 1,287 PointsThank you very much!
Elliott Frazier
Courses Plus Student 9,647 PointsElliott Frazier
Courses Plus Student 9,647 PointsNo problem!