|
Posted by Luigi Donatello Asero on 11/14/94 11:27
"Michael Winter" <m.winter@blueyonder.co.uk> skrev i meddelandet
news:o_0Ze.114554$G8.97387@text.news.blueyonder.co.uk...
> 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.
Thank you.
> 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
I am afraid I made a mistake.
Perhaps, I thought that I would need display:table because the image is in a
table.
Do I need it?
It validates without as well.
--
Luigi Donatello Asero
(sono italiano ma vivo in Svezia)
(я итальянец но я живу в Швеции )
(我是 意大利人 , 但是 我 住 在 瑞典)
(minä olen Italian kansalainen, mutta minä asun Ruotsissa)
https://www.scaiecat-spa-gigi.com/
Navigation:
[Reply to this message]
|