Here is what I have: An SVG of dimensions 1920*1920 pixels (https://signtalkindia.s3.ap-south-1.amazonaws.com/assets/windbg.svg)
Here's what I need:
- I will be using this as a background-image to for a div taking full width of screen.
- This background-image for the div needs to be responsive.
- A MUST is having the top of the background visible at all screen sizes i.e. background-image should start at top of the image.
- Should not repeat.
(The idea is to show the background of the sea which is designed and linked as seen above.)
Here's what I've tried:
body {
padding: 20px;
}
div{
height: 1000px;
background: url(https://signtalkindia.s3.ap-south-1.amazonaws.com/assets/windbg.svg) bottom top;
background-size: 150%;
background-repeat: none;
}
<div>
</div>
There are a lot of rules mentioned in the "What I need" section that aren't adhered. Must be simpler than I think it is, but I'd love it if someone could help. I'm using React, but I don't think that should mattter for this.