Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8878215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T19:39:40+00:00 2026-06-14T19:39:40+00:00

How can I add a nice overlay like the one in the following image?

  • 0

How can I add a nice overlay like the one in the following image?

enter image description here

Consider the following HTML, how would I add an overlay like that? I know I can use a gradient on top of it, and apply it diagonally, but can I curve it as well?

<div class="photostrip">
  <div class="overlay" />
  <img src="http://i.imgur.com/a21tM.jpg" />
  <img src="http://i.imgur.com/a21tM.jpg" />
  <img src="http://i.imgur.com/a21tM.jpg" />
</div>

Here’s something I’ve tried (I’ve oversaturated the overlay so it’s easily seen), but it’s not quite the shape I’m looking for.

body { background-color: #4b74db; }

.photostrip {
  margin: 0 auto;
  width: 185px;
  background-color: #000;  
  box-shadow: 0px 3px 7px 3px #333;
  padding: 7px;
  padding-bottom: 2px;
  position: relative;

  .overlay {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    border-bottom-right-radius: 200px 403px;
    /* This adds the nice overlay. */
  background: -webkit-linear-gradient(top, rgba(255,255,255,0.60) 0%,rgba(255,255,255,0.05) 100%);
  }


  img {
    display: block;    
    width: 175px;
    height: 120px;
    margin: 0 auto;
    margin-top: 6px;
    margin-bottom: 11px;
  }
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T19:39:41+00:00Added an answer on June 14, 2026 at 7:39 pm

    Does something like this work for you: http://codepen.io/defo550/pen/Fcsxo

    .photostrip {
      margin: 0 auto;
      width: 185px;
      background-color: #fff;  
      box-shadow: 0px 3px 7px 3px #333;
      padding: 7px;
      padding-bottom: 2px;
    
      /* Remove default list stylings*/
      list-style: none;
    
      /* provide a position context for our   pseudo element */
      li {
        position: relative;
      }
    
      img {
        display: block;  
        width: 175px;
        height: 120px;
        margin: 0 auto;
        margin-top: 6px;
        margin-bottom: 11px;
      }
    }
    
    /* overlay styles
      create pseudo element  
    */
    .photostrip li:after {
            content: "";
            position: absolute;
           /* position above img */
            z-index: 5;
    
            width: 175px;
            height: 120px;
            top: 0;
            left: 5px;
    
    /* overlay styles */
            background: linear-gradient(135deg, rgba(255,255,255,0.33) 0%,rgba(255,255,255,0.33) 60%,rgba(255,255,255,0) 61%,rgba(255,255,255,0) 100%);
          }
    
    <ul class="photostrip">
     <li><img /></li>
     <li><img /></li>
     <li><img /></li>
    </ul>
    

    I put your images in an unordered list and then created a pseudo-element on the li (that wraps each image) that has a background gradient with the desired effect ( or close ) of your image above.

    You could also target each li separately in the CSS to change up the background gradient.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know one can add event listener for window.error. However when working with Iframes,
This code creates a nice plot but I would like to add a horizontal
We can add an image to an photo album using UIImage *img = [UIImage
I wrote library which can add and update objects in salesforce. I use beatbox
I've developed a nice rich application interface using Backbone.js where users can add objects
This question is for objects in Javascript. I notice that I can add a
Is there an algorithm in the standard library that can add a value to
I have a concept for a framework of controls that I would like to
I'm looking for a FTP client that I can use to upload new files
I need to pick a standard container (JPanel?) in Swing that I can use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.