newcoder1010 Posted July 31, 2020 Share Posted July 31, 2020 (edited) Hello, https://docs.google.com/document/d/1p-ufU-px-iMVk-Pom5r5tQIKkd0WujD8Ced2QvJgjms/edit?usp=sharing The image shows top middle is styled. HTML: <div class ="img"> h1 heading goes here </div> How can I set a background image like the above and then put the h1 heading in the middle of the image? Edited July 31, 2020 by newcoder1010 Link to comment Share on other sites More sharing options...
shaili_shah Posted August 7, 2020 Share Posted August 7, 2020 Use this : header { width:100%; background-image:url("images.jpg"); } Hope it will help to you. Thanks! 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