W3C home > Mailing lists > Public > www-style@w3.org > January 2011

Re: width and height

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Tue, 25 Jan 2011 10:00:46 -0800
Message-ID: <AANLkTinCV0PHrSXL5TqM41it+kvwDZpxokT6FjZCziqc@mail.gmail.com>
To: Bruno <bruno5544@gmail.com>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, www-style@w3.org
On Tue, Jan 25, 2011 at 9:52 AM, Bruno <bruno5544@gmail.com> wrote:
> Here you go:
>
> #css a:hover {
>        color:red;
>        background-color:blue;
>        height:100px;
>        width:400px;
> }
>
> Don't know how it works for you when I tested it on all major browsers
> and doesn't work on any.

Could you post the *whole* testcase?  HTML and the rest of the CSS?

You do realize that, by default, <a> is an inline element, and 'width'
and 'height' don't work on inline elements?

~TJ
Received on Tuesday, 25 January 2011 18:01:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:36 GMT