Logo - Albert Walicki

Target first line of sentence

CSS
Example of styling first line of the element

Selector ::first-line will find your first line in your HTML element and will style it differently. Do you don't have to use any javascript magic to achieve that! Just use this selector.

See more tips!

CSS
Example of styling first letter of the line

Target first letter of element

Logo - Albert Walicki

Hello, i’m Albert Walicki. i’m a frontend developer and cofounder of development & design agency Hype4 and education platform Hype4 Academy. I wrote a book for Junior Frontend developers called Frontend Unicorn.

BlogGlassmorphismAurora UIShapes in CSSUnique css illustrations

Get in touch!

Have a question or need a project? Contact me!

© 2020-present Albert Walicki. All Rights Reserved