(Solved)CSS body background image is ignored
Posted: Mon Nov 29, 2010 8:38 pm
Sorry but I am really stuck on this one. I have read and searched for the last two days.
This is my first try with CMSMS
I made my own template in CS5. All works well except!!!!
I loaded an image to images/theme/bagrdverlauf.jpg
in my CSS I added:
background: #D6D6D6 url(uploads/images/theme/bagrdverlauf.jpg) repeat-x scroll left top;
to my CSS under the body tag.
It accepts the colour but not the image.
In an attempt to find an answer:
I then changed this line to the NCleanBlue template CSS and the background image appeared.
I then loaded "and01" theme, made the same change, but no background image.
This code is from my CSS:
body {
font-size: 100.01%;
font-family: Arial, Helvetica, sans-serif;
color: #000;
background:#D6D6D6 url(uploads/images/theme/bodyverlauf.jpg) repeat-x scroll left top;
}
This works in NCleanBlue
body {
/* default text for entire site */
font: normal 0.8em Tahoma, Verdana, Arial, Helvetica, sans-serif;
/* default text color for entire site */
color: #3A3A36;
/* you can set your own image and background color here */
background: #D6D6D6 url(uploads/images/theme/bodyverlauf.jpg) repeat-x scroll left top;
}
I then cut and pasted this in my CSS. It did not work. Color yes, image no!!!!
I only have this on my localhost Xampp 1.7.3
It must be really simple but I can't see it. Sorry
please can you help
This is my first try with CMSMS
I made my own template in CS5. All works well except!!!!
I loaded an image to images/theme/bagrdverlauf.jpg
in my CSS I added:
background: #D6D6D6 url(uploads/images/theme/bagrdverlauf.jpg) repeat-x scroll left top;
to my CSS under the body tag.
It accepts the colour but not the image.
In an attempt to find an answer:
I then changed this line to the NCleanBlue template CSS and the background image appeared.
I then loaded "and01" theme, made the same change, but no background image.
This code is from my CSS:
body {
font-size: 100.01%;
font-family: Arial, Helvetica, sans-serif;
color: #000;
background:#D6D6D6 url(uploads/images/theme/bodyverlauf.jpg) repeat-x scroll left top;
}
This works in NCleanBlue
body {
/* default text for entire site */
font: normal 0.8em Tahoma, Verdana, Arial, Helvetica, sans-serif;
/* default text color for entire site */
color: #3A3A36;
/* you can set your own image and background color here */
background: #D6D6D6 url(uploads/images/theme/bodyverlauf.jpg) repeat-x scroll left top;
}
I then cut and pasted this in my CSS. It did not work. Color yes, image no!!!!
I only have this on my localhost Xampp 1.7.3
It must be really simple but I can't see it. Sorry
please can you help