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

Re: width and height

From: Bruno <bruno5544@gmail.com>
Date: Tue, 25 Jan 2011 19:24:45 +0100
Message-ID: <AANLkTinSF2_HRaCs0KWgvSSifAxf9eKTHS9po+YYwz4L@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style@w3.org
Yes this is the solution to this, but personally I would just allow
simple use of 'width' and 'height' without extra code.

Thanks,
Bruno

2011/1/25 Tab Atkins Jr. <jackalmage@gmail.com>:
> On Tue, Jan 25, 2011 at 10:14 AM, Bruno <bruno5544@gmail.com> wrote:
>> Then this is the problem. But then why margin and padding works, with
>> those you can achieve what you would do with height&width for a:hover,
>> maybe it won't look nice, but with padding under a:hover you can do
>> same thing instead of using height or width.
>> Then why not placing "proper" rule to have actual width and height under :hover.
>
> That's just how 'inline' elements work.  If you want 'width' and
> 'height' to work on them, but have them otherwise act mostly like
> inline element, make them "display:inline-block".
>
Received on Tuesday, 25 January 2011 18:25:36 GMT

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