newcoder1010 Posted March 26, 2021 Share Posted March 26, 2021 Hello, <div class ="curve"> test </div> https://drive.google.com/file/d/1QlnPuBx2zkRS2gLCcT7fGtquBQW3ZJCy/view?usp=sharing I like to curve (top and bottom) of the div element with a background color like the image. How can I do it? Thanks! Link to comment Share on other sites More sharing options...
Ingolme Posted March 27, 2021 Share Posted March 27, 2021 If you make an SVG image file with that shape and gradient you can use it as a background image for your div. Link to comment Share on other sites More sharing options...
newcoder1010 Posted March 28, 2021 Author Share Posted March 28, 2021 Thanks! I thought it can also be done with css. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now