Hi Rick,
I worked it out in between me sending and receiving your reply.
I put in the full url that I was testing from and it pulled in the image. It
was then I realised what you meant and when I put
url('../../images/mt2.jpg') it worked. Don't know why I didn't think of that
in the first place.
My thanks to you and Nick for your patience.
Kind Regards,
Kevin.
_____
From: Rick den Haan [mailto:[EMAIL PROTECTED]
Sent: Friday, January 19, 2007 19:37 PM
To: Kevin J Pledger
Cc: 'Css-D Lists'
Subject: Re: [css-d] calling an image from within the CSS
Kevin J Pledger wrote:
I had tried that already but the minute I try that the code goes from this:
#banner {
background-color: #fff;
background-image: url(images/mt2.jpg);
background-repeat: no-repeat;
background-position: top center;
height:75px;
border-top:1px solid #000;
border-right:1px solid #000;
border-left:1px solid #000;
border-bottom:1px solid #000;
voice-family: "\"}\"";
voice-family: inherit;
height:74px;
}
html>body #banner {
height:74px;
}
To this, I suspect the inclusion of the .. Causes some major heart attack to
the code.
#banner {
border:1px solid #000; background-color: #fff;
background-image: url('images/mt2.jpg');
background-repeat: no-repeat;
height:75px;
voice-family: "\"}\"";
voice-family: inherit;
height:74px; background-position-y:center
}
html>body #banner {
height:74px;
}
Where did you leave the ..? From your previous post, I understand your file
structure is like this:
mt/index.html
mt/scripts/css/???.css
mt/images/mt2.jpg
If I got that right, you need to go two levels back up from the CSS file. So
change
background-image: url('images/mt2.jpg');
to
background-image: url('../../images/mt2.jpg');
Does that help?
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/