There are several lines text with dot. I tried to use whitespace-pre-line
, but it didn’t work.
This is the code
<div className="flex items-center group" >
<p
className="px-6 py-3 rounded-b-lg rounded-r-lg bg-gray-800 w-[28rem] max-w-xs lg:max-w-md text-gray-200 whitespace-pre-line">
Hello @Green
Greetings from VPN Infotech! We're thrilled about your positive experience with us. We're here to offer our expertise/ service as listed.
• We recommend integrating AI into your existing website or mobile application to enhance its performance.
• Our team specializes in optimizing and quality assurance for your current web/mobile application, and we'll provide insights for upgrades and the implementation of new features in line with current trends.
• Additionally, we offer maintenance services to ensure the ongoing smooth operation of your web/mobile application.
Thank you for considering VPN Infotech; we're excited about the prospect of working together again.
Best regards.
</p>
I need to display text with nextline, space in flex and tailwind CSS
2
Answers
HTML Structure
Tailwind CSS Classes
whitespace-pre-line
: To preserve whitespace and new lines in text.You can further customize the appearance using Tailwind CSS classes:
Adjust spacing: space-y-2, space-y-6
Adjust padding: p-2, p-6
Add text styles: text-lg, font-bold
As per our conversation above, I would say that I do not fully understand what you actually need, but let’s try.
Here is the proposed solution using ul and li
and here is another one without li and ul