|
Posted by Els on 07/26/06 13:56
jojo wrote:
> Els wrote:
>
>> You have a more specific style in classes.css:
>> .blue #content a.external:link.
>> More specific overrides less specific, so just use that same selector
>> for this background-image.
>
> Yes, but this style is supposed to override the first one, it just
> specifies an other image (different color), the position and repeat
> should stay the same.
It will not override if you use less specific selectors.
So instead of a.external, use .blue #content a.external:link. That's
what I was saying.
>> Also, just url(external.gif) doesn't work, but
>> url(../styles/external.gif) does.
>
> It works fine I think. Did you have problems?
Yes. I went to your page in FF, and there was no image. Could be
caused by the fact that I was using the web developer toolbar to look
at the CSS - forgot that it does that sometimes. Made me focus on the
wrong (non-)problem, sorry :\
>> No idea why, as it's in the same directory as the stylesheet.
>
> Indeed. So ../styles/external.gif points to a wrong file (../styles does
> not even exist). Really strange...
No, it does exist.
Your stylesheet is in http://www.hafner-web.de/jojo/styles/
So ../styles/ brings you back in the same folder.
Anyway, since that wasn't the problem apparently, let's go back to the
original problem - no-repeat not being honoured in IE.
Tested locally: in default.css, there is a 'background:none;' for all
elements. no idea why it isn't overridden, but if you take that one
line out, or change it to 'background-image:none;', the
background-image is not repeated anymore in IE.
--
Els http://locusmeus.com/
Navigation:
[Reply to this message]
|