Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mycss #162

Open
embarki34 opened this issue Nov 23, 2021 · 2 comments
Open

Mycss #162

embarki34 opened this issue Nov 23, 2021 · 2 comments

Comments

@embarki34
Copy link

  • {
    margin: 0;
    padding: 0;

}

.main {
width: 100%;
background: Linear-gradinebt(to top, rgba(0, 0, 0, 0)50%, rgba(0, 0, 0, 0)50%),url(https://i.postimg.cc/7L3tSM73/1-AC9432-B-102-D-4752-9-A3-C-86-A6914-BAE8-E.jpg);
background-position: center;
background-size: cover;
height: 109vh;

}

@Jyotiraditya24
Copy link

Could you please elaborate the issue

@umeshparida84
Copy link

There is a typo in the background property. The correct property should be Linear-gradient instead of Linear-gradinebt. Also, there is a missing comma after the first rgba(0, 0, 0, 0).I think With these changes, the CSS should work correctly and display the background image with the specified gradient overlay.

Here the correct code:-
{
margin: 0;
padding: 0;
}

.main {
width: 100%;
background: linear-gradient(to top, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0) 50%), url(https://i.postimg.cc/7L3tSM73/1-AC9432-B-102-D-4752-9-A3-C-86-A6914-BAE8-E.jpg);
background-position: center;
background-size: cover;
height: 109vh;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants