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 a frontend developer with over six years of experience, freelancer. I'm also a mentor for junior frontend developers. 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

Policy