![]() |
To change the font size and colour of text in Tailwind CSS, we can use the following Utility Classes. Changing Font SizeUse the <p class="text-lg">This text has a large font size.</p>
Changing Text ColorUse the <p class="text-blue-500">This text is in blue color.</p>
Changing Font WeightOptionally, you can adjust the font weight using classes like <p class="font-bold">This text is bold.</p>
|
Reffered: https://www.geeksforgeeks.org
Tailwind CSS |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 16 |