Jump to content

CSS triangle>rectangle>gradient opacity


cerotis
 Share

Recommended Posts

You can make the gradient the background of a box and create two boxes with white borders and position them to the bottom left and bottom right to cover up the part of the gradient you don't want to see.

Here's an example of a CSS triangle:

div {width: 0;height: 0;border: 50px solid;border-color: transparent red red transparent;} <div></div>
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
 Share

×
×
  • Create New...