Re: width and height

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 UTC