CSS can make your web pages look amazing! Below are some commonly used styles that will help you bring your designs to life. Letβs dive in! π
Control the appearance of text easily:
text-transform: uppercase; /* Converts text to UPPERCASE */
text-transform: lowercase; /* Converts text to lowercase */
text-transform: capitalize; /* Capitalizes the first letter of each word */
Example:
<p style="text-transform: capitalize;">hello world!</p>
<!-- Output: Hello World! -->
Add cool shadows to text for a stylish effect:
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
Example:
<h1 style="text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);">
Glowing Text
</h1>
Control the vertical space between lines of text:
line-height: 1.5; /* 1.5 times the font size */