End of Support for Joomla 3 - Forum closed
[SOLVED] background image
Hi,
Sorry, i seem to be unable to load an image as a background in my custom css. I can change the colour no problem but have an issue with changing it to an image. Here is the syntax within the custom css:
html {background-image: images/joomlaplates/blue-test.jpg !important;}
Does it need to read
html {background-image: url('images/joomlaplates/blue-test.jpg') !important;}
Thanks,
Steve
Sorry, i seem to be unable to load an image as a background in my custom css. I can change the colour no problem but have an issue with changing it to an image. Here is the syntax within the custom css:
html {background-image: images/joomlaplates/blue-test.jpg !important;}
Does it need to read
html {background-image: url('images/joomlaplates/blue-test.jpg') !important;}
Thanks,
Steve
by smc1st
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
PLease check your source code if the image is at the right path.
I dont htink so, please use this code below:
Right code: ../images/..
I dont htink so, please use this code below:
Your code: images/..html {background-image: url('../images/joomlaplates/blue-test.jpg') !important;}
Right code: ../images/..
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
Hi,
I just put the test images in there so i can work out what i like. they do not stay in there permanently. I have already tried the below and tested it again and it does not seem to work for some reason. So just to clarify i have saved the images in the joomlaplates folder within images.
Thanks,
Steve
I just put the test images in there so i can work out what i like. they do not stay in there permanently. I have already tried the below and tested it again and it does not seem to work for some reason. So just to clarify i have saved the images in the joomlaplates folder within images.
Thanks,
Steve
by smc1st
Please Log in or Create an account to join the conversation.
- joomlaplates
- Offline
- Moderator
- Posts: 8807
- Thank you received: 1732
live url please...
And please take in your mind that you can have 2 background images.
One image at html and one in body section. Make sure that the body is not override the html background.
www.w3schools.com/cssref/pr_background-image.asp
And please take in your mind that you can have 2 background images.
One image at html and one in body section. Make sure that the body is not override the html background.
www.w3schools.com/cssref/pr_background-image.asp
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
Hi,
No problem, I will take a look. I do not have a live url yet as I have a local instance on my pc that I am using to get to grips and produce a temporary design.
Thanks,
Steve
No problem, I will take a look. I do not have a live url yet as I have a local instance on my pc that I am using to get to grips and produce a temporary design.
Thanks,
Steve
by smc1st
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates