I am using the following code, but it is having no effect!! Can this be done?
html {
background: #d9dbdc url('images/repeat-x.png') repeat-x;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will work if you actually have an image at the specified location, although it’s usually applied to the
bodyelement. It could be that the body element has a background colour that is covering the image.Note that paths are relative to the style sheet file, not the HTML file embedding it, so a path pointing to
images/repeat-x.pngin/css/styles.csswould result in/css/images/repeat-x.png.