igeoorge 26 Posted March 4, 2019 Posted March 4, 2019 Friends, how can I put an image above all the content as in the example?
Happy2Play 9780 Posted March 5, 2019 Posted March 5, 2019 If you want to put the Image in the \system\dashboard-ui\css\images folder with every update you could do this. #homeTab:before { content: url(../web/css/images/yourimage.jpg); padding-left: 22%; } Or if the image is hosted somewhere (the online image for your example) #homeTab:before {content: url(https://q-ec.bstatic.com/images/hotel/max1024x768/352/35226231.jpg); padding-left: 22%;} Obviously the padding will need adjusted according to the actual image. 1
igeoorge 26 Posted March 5, 2019 Author Posted March 5, 2019 It worked perfectly friend. Thank you very much.
Solution Happy2Play 9780 Posted March 8, 2019 Solution Posted March 8, 2019 (edited) Update #homeTab:before { content: ''; background: url(https://q-ec.bstatic.com/images/hotel/max1024x768/352/35226231.jpg) no-repeat center; height: 100em; display: block; background-size: cover; } or #homeTab:before { content: ''; background: url(../web/css/images/yourimage.jpg) no-repeat center; height: 100em; display: block; background-size: cover; } You can add margins if you don't want the image to go to the edges, add within the code above. margin-left: 10px; margin-right: 10px; Edited March 8, 2019 by Happy2Play 1
EODCrafter 181 Posted March 8, 2019 Posted March 8, 2019 Friends, how can I put an image above all the content as in the example? Where is your Hotel? Looks Tropical!
igeoorge 26 Posted March 8, 2019 Author Posted March 8, 2019 Friends, how can I put an image above all the content as in the example? Where is your Hotel? Looks Tropical! Hi, you can use this code as an example above #homeTab:before {content: url(https://q-ec.bstatic.com/images/hotel/max1024x768/352/35226231.jpg); padding-left: 22%;}
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