ANT... wrote:

> Hi all,
> 
> I have been creating a cross-browser DHTML page and have come across 
> several problems. They are demonstrated in the webpage: 
> http://pages.britishlibrary.net/jjrleisure/forest/forestphotos.htm
> 
> 1) Short color codes do not appear to be supported. eg the title of this 
> page has been give the style color:080; which should render as dark 
> green, but instead renders as dark blue (I have tested the page with the 
> full code 008800 which works fine.)
> 
> 2) The background property does not seem to work.
> background:ddffdd url(../stripes.gif);
> is set as a body style, but the background is set to white. This renders 
> fine on both NS4.76, and IE5.
> 
> So, are these problems Mozilla problems - the browser not rendering the 
> page correctly, or are the points above due to the properties not being 
> official CSS?


You are writing illegal CSS. Color codes as you want is written with a 
hash sign (#) in front. Without that character you are telling Mozilla 
to look for named colours with the names "ddffdd" and "080".

I recommend putting your code (css and html) through validators when 
it's not behaving correctly. I even recommend you use validators when it 
is working correctly, because maybe it's only working because your 
current browser is guessing correctly when it sees broken html and css.

http://jigsaw.w3.org/css-validator/
http://validator.w3.org/

/Daniel


> 
> Cheers,



Reply via email to