Marko ⚡ Denic Profile picture
Aug 15 11 tweets 3 min read
The most powerful CSS one-liners:
1/ Drop shadow

When you work with transparent images you can use `drop-shadow()` filter function to create a shadow on the image's content, instead of `box-shadow` property which creates a rectangular shadow behind an element's entire box:

filter: drop-shadow(2px 4px 8px #000);
2/ Smooth scroll

Smooth scrolling with zero JavaScript, with just one line of CSS.
3/ Gap

Use the `gap` CSS property to set the gaps (gutters) between rows and columns.
4/ CSS Scroll Snap

You can use the CSS Scroll Snap feature to create well-controlled scroll experiences:
5/ Inset

Use the `inset` CSS property as a shorthand for `top`, `right`, `bottom`, `left`:
6/ Custom cursors

Did you know that you can use your own image, or even emoji as a cursor?
7/ Truncate text

You can use the `-webkit-line-clamp` property to truncate the text to a specific number of lines.

Super useful.
8/ Resize

Did you know that you can make any element resizable, just like `<textarea>`?
9/ background-clip

Use the `background-clip` property to create beautiful headlines.
If you liked this thread, share it with your friends:

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Marko ⚡ Denic

Marko ⚡ Denic Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @denicmarko

Aug 17
GitHub repositories to improve programming skills:
1/ Free Programming Books

Freely available programming books.

github.com/EbookFoundatio…
2/ Coding Interview University

A complete computer science study plan to become a software engineer.

github.com/jwasham/coding…
Read 17 tweets
Aug 11
HTML tips you won't see in most tutorials:
1/ The `meter` element

You can use the `<meter>` element to display quantities. No JavaScript/CSS is needed.
2/ Use the `<datalist>` element to create native HTML autocomplete.
Read 19 tweets
Aug 7
Google is the most powerful tool in the world.

But most people don't use it right.

Here are 10 Googling tips you probably don't know:
1/ Use quotes to force an exact-match search:

"what is javascript"
2/ AND operator will return only results related to both terms:

html AND css
Read 12 tweets
Aug 6
9 websites that will make you smarter:
1/ CleanUpPictures

Remove any unwanted objects, people, or text from your pictures.

cleanup.pictures
2/ Sejda PDF

Edit PDF files for free.

sejda.com
Read 11 tweets
Jul 29
These 5 Chrome extensions will 10x your productivity and save you hours each week:
1/ Scribe (@ScribeHow)

Screen recorder that automatically creates how-to guides and tutorials in seconds.

scribe.how/chrome
2/ daily.dev (@dailydotdev)

Get a feed of the hottest developer news. Read more quality articles. Stay up to date. Save time.

chrome.google.com/webstore/detai…
Read 7 tweets
Jul 27
10 amazing websites you'll wish you knew already:
1/ Freecodecamp - Learn software engineering.

For free.
freecodecamp.org/learn/
2/ Diffchecker - Compare two files for differences.

You can compare:

~ Text files
~ Images
~ PDFs
~ Excel files

diffchecker.com
Read 13 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(