|
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]
|