Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

product preview card component solution

@ThilinaDeshan98

Desktop design screenshot for the Product preview card component coding challenge

This is a solution for...

  • HTML
  • CSS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Can someone tell me how to break paragraph lines where you want to using css. I managed to do it but in HTML. I'm not sure the way I did it was correct or not.

Community feedback

P
Alper 1,010

@adonmez04

Posted

Hi, @ThilinaDeshan98. That's a really good question. The short answer is yes. You can use <br> tag in html to break a paragraph. The long answer is that you should use the nested width and max-width value with .parent and .child. You should change the breakpoint of the paragraph using the width value of the child, such as .section-hero__content-area in this example: the-responsive-design

Keep coding and have a nice day.

Marked as helpful

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord