You are here: Re: Backgroun-repeat in IE doesn't work « HTML « IT news, forums, messages
Re: Backgroun-repeat in IE doesn't work

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация