Ram Profile picture
Jun 5 10 tweets 4 min read
Image overlay

It is the must known technique by every web developer. They are different ways to add text over image in an appealing way.

we can see more on this thread. 🧵

#100DaysOfCode #CSS Image
Types of overlay

• Text overlay - adding text over image. ex: landing page banners with captions.

• Image overlay - adding image over image. ex: images with logos/ brand names as watermark.

We will see different methods to add with some examples.
Add text over image directly.

It is rarely suitable, because it has lot of constraints to get better look.

• Image should be dark.
• Text has to be white.

Brighter the image, poorer the readability. so use this only for dark images. Image
Add image overlay and then add text over it.

In order to add text over brighter images, we can add dark overlay over the whole image and then add text over it.

• This will give better readability.
• Adding gradient overlay will give cool look. Image
Text inside box.

Add box with some solid background color and then add text over it.

• This will also improves readability.
• It is a popularly used technique because it is simple and reliable. Image
Blur the image

It also a widely used technique, where some part of the image or whole image is blurred to make text legible.

There is also another technique called "floor fade". in which image will blur gradually at the bottom. Image
How to add text over image using CSS.

We can able to achieve all the above image overlay techniques using plain CSS itself.

• Using position property.
• Using pseudo elements.

Here you can find more info with examples => css-tricks.com/design-conside…
Cons of adding overlay using CSS.

• We need write code for responsiveness. (mobile, and different screen widths).

• If user downloads the image means, the overlay effect is lost. so user only sees plain image.
Cases where we need to avoid overlay using CSS

• In watermarks. adding logo or brand name over image is need to be done in design itself. if added using CSS means, after downloading it will be lost.

• Complex designs. because it requires more work to achieve & responsiveness
That all in this thread.

Thank you !!.

If you liked this thread: - Please Like and Retweet

Also follow me at @ram00759595 for more content like this.

Thanks again 💙.

• • •

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

Keep Current with Ram

Ram 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!

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!

:(