My background images are not appearing. This is my code for the green part where a background image is supposed to be. I have just put different colours in the divs for now to differentiate them http://www.creativeastro.com/MSHeating/index.php
Under the big img with the woman touching the boiler there are 3 divs and in each there is supposed to be background imgs which are green and the text that is there comes on top but those images are not appearing. They did at some point but not anymore. This is the code for them below:
<div id=\"green2\"><a href=\"repairs.php\"><img src=\"images/repairs.png\" alt=\"Maintenance and Repairs\" class=\"repairs\"/></a><p>Boiler Maintenance is very important etc etc.</p><a href=\"repairs.php\"><img src=\"images/learn-more.png\" alt=\"Learn More\" class=\"more\" /></a></div>
<div id=\"green3\"><a href=\"feedback.php\"><img src=\"images/customer-icon.png\" class=\"customer\" alt=\"get a quote\" /></a><p>Find out what our clients say about our work.</p><a href=\"feedback.php\"><img src=\"images/feedback.png\" alt=\"Read Feed Back\" class=\"more\" /></a></div>
I have a similar problems with the other pages but maybe if I sort out the main page I might be able to sort the other problems out, if not I will ask for help again.
My background images are not appearing. This is my code for the green part where a background image is supposed to be. I have just put different colours in the divs for now to differentiate them http://www.creativeastro.com/MSHeating/index.php
#main-pic{width:100%;height:620px;
background-image:url(images/bg2.jpg);
background-repeat:repeat-x;
}
Under the big img with the woman touching the boiler there are 3 divs and in each there is supposed to be background imgs which are green and the text that is there comes on top but those images are not appearing. They did at some point but not anymore.
This is the code for them below:
#green-boxes{width:960px;
margin:0 auto;}
#green1{background-image:url(images/green1.jpg);
background-repeat:repeat-x;
float:left;
margin-left:13px;
width:234px;
height:245px;}
#green2{background-image:url(images/green2.jpg);
background-repeat:repeat-x;
float:left;
width:243px;height:245px;}
#green3{background-image:url(images/green3.jpg);
background-repeat:repeat-x;
width:229px;height:245px;
float:left;
margin-right:10px;}
The html is
I have a similar problems with the other pages but maybe if I sort out the main page I might be able to sort the other problems out, if not I will ask for help again.
Thank you for reading, I hope you can help.
EDIT:
Correct link is http://www.creativeastro.com/MSHeating/index.php
#main-pic{width:100%;height:620px;
background-image:url(../images/bg2.jpg);
background-repeat:repeat-x;
}
Yes that worked. It does help to have fresh eyes look at the code.
Do you have any ideas why some images have worked with the path I had originally?
The only way that path could possibly work would be if the stylesheet was at the root level ie. not in a directory.