Created
May 19, 2020 19:50
-
-
Save agustinpfs/89d464c8deb3d4907dc1d15146c0b64d to your computer and use it in GitHub Desktop.
Background image coverd 100% css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style> | |
body { | |
background: url("https://blog.selfbank.es/wp-content/uploads/2018/07/iStock-889946406-720x320.jpg") no-repeat center fixed; | |
background-size: cover; | |
} | |
main { | |
width: max-content; | |
margin-left: auto; | |
margin-right: auto; | |
text-align: center; | |
} | |
h1 { | |
color: green; | |
} | |
</style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment