Jump to content

Problems with combining a single background, with a color/gradient and border in a list element


Sunamena

Recommended Posts

Hello everyone. Thanks in advance for helping me again. It is very much apreciated.


This is what i have:

 

 

problem.png

 

 

 

And this is what i want to achieve:

 

goal.png

 

 

 

It is a <li> element.
How do i make the background color/gradient start 10% after rge background image?
Same for the border.




Thankyou very much =D

Link to comment
Share on other sites

  • 4 weeks later...

you can use linear gradient. and use rgba color to set opacity of first 10% of background color to 0.

like this:

linear-gradient(to right, rgba(255,0,0,0) 10%, rgba(255,0,0,1) 10%);

use this code start bg color start 10% after rgb bg image...

Edited by Nikolas96
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...