Re: width and height

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 UTC