-----Original Message-----
From: Nick Mavros [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 19, 2007 18:40 PM
To: Kevin J Pledger
Cc: 'Css-D Lists'
Subject: Re: [css-d] calling an image from within the CSS

Kevin J Pledger wrote:
> Nick,
>
> Tried this and white background disappeared and still no image. 
>
> Very frustrating ..
>
> Will keep on reading and trying.
>
> Thanks for your input. One always keeps learning..
>
> Regards,
>
> Kevin
>   
Nick Mavros wrote:
Maybe you got the url wrong.
The url you are using url(images/mt2.jpg) it means that the image mt2.jpg is
located in a folder "images" inside the folder where the html file stands.
Let me explain more:
lets say your file is index.html you have to use the following structure:
In the base folder is the index.html and the images folder. And in the
images folder is the mt2.jpg.

[base folder]
        index.html
        [folder "images"]
                 mt2.img
-------------------------

Nick,

My directory structure is this under mt/
scripts/css/
images/mt2.jpg
index.htm

So I am pretty sure that with url(images/mt2.jpg) is correct. I also tried
url(/url/images/mt2.jpg) but still the same result no image showing up.

My CSS for #banner is this now based on your advice and what I read on wc3.
My ordering could be wrong also.. 

#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;
        }

Back to the drawing board and more reading.

Thanks again.

Kevin.


______________________________________________________________________
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/

Reply via email to