-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rick den Haan
Sent: Friday, January 19, 2007 19:07 PM
To: 'Css-D Lists'
Subject: Re: [css-d] calling an image from within the CSS
Kevin J Pledger wrote:
> Rick den Haan wrote:
>
> See http://www.w3.org/TR/CSS201/colors.html#propdef-background for
> more information.
>
> Tried the link you give and get *The URL path in your request doesn't
> match anything we have available.*
My bad. http://www.w3.org/TR/CSS21/colors.html#propdef-background that
0 shouldn't have been there....
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.
>
Rick den Hann wrote:
Actually, the url is relative from the location of the *css* file, not the
HTML.
So, if your structure is like this:
[/]
- index.html
- [/style]
- - style.css
- [/images]
- - mt2.jpg
you should use url(../images/mt2.jpg) in your style.css file. Maybe that's
the problem? I always put single quotes around the url just in case, so
url('../images/mt2.jpg'). Does that work?
Hi Rick,
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;
}
Very Frustrating ....
I went through this when I tried simple javascripting ... Look and look for
the error can see it, walk away come back you see that you left out a ' in
the code ....
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/
______________________________________________________________________
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/