igeoorge 26 Posted March 4, 2019 Share Posted March 4, 2019 Friends, how can I put an image above all the content as in the example? Link to comment Share on other sites More sharing options...
Happy2Play 8240 Posted March 5, 2019 Share 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 Link to comment Share on other sites More sharing options...
igeoorge 26 Posted March 5, 2019 Author Share Posted March 5, 2019 It worked perfectly friend. Thank you very much. Link to comment Share on other sites More sharing options...
Solution Happy2Play 8240 Posted March 8, 2019 Solution Share 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 Link to comment Share on other sites More sharing options...
EODCrafter 179 Posted March 8, 2019 Share 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! Link to comment Share on other sites More sharing options...
igeoorge 26 Posted March 8, 2019 Author Share 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%;} 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