You are here: Re: The validator does not work « HTML « IT news, forums, messages
Re: The validator does not work

Posted by Michael Winter on 11/14/00 11:27

On 23/09/2005 22:22, Luigi Donatello Asero wrote:

> [...] I do not understand why the validator says that I do not have
> any background-color.

What Els said with regard to the color property, however the background
shorthand declaration

> DIV.logtype {
> background-color: #cccccc;
> background-image: url(/bilder/scaiecat-spa-gigi.jpg);
> background-position: top right;
> background: no-repeat;

....does present a problem.

When values are missing from a shorthand declaration, the initial value
(defined for each individual property in the specification) should be
applied. This means that the colour, image and position will revert to
the initial values (transparent, none, and 0% 0%, respectively) and only
no-repeat will remain.

This doesn't currently occur in your style sheet, but you should
remember it for future reference.

background: #cccccc url(/bilder/scaiecat-spa-gigi.jpg)
top right no-repeat;

[snip]

Why does the first image (Elba) have 'display: table' applied to it in
the form of the .two class?

Mike

--
Michael Winter
Prefix subject with [News] before replying by e-mail.

 

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

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