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:15:26 -0800
Message-ID: <AANLkTinH5Z7Uhzcy15W4iYfqhz_4TC1BPwP99CtvHgpf@mail.gmail.com>
To: Bruno <bruno5544@gmail.com>
Cc: www-style@w3.org
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:16:18 GMT

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