FTOB: Set height and width for anchors with display:block

Originally posted on 10/25/08 at http://likesalmon.wordpress.com

Turns out the width and height properties only work on anchor tags when used in conjunction with display:block. WTF?

So this does not work:
a { width: 100px; height: 100px; }

But this does:
a { width: 100px; height: 100px; display:block; }

Again, have I seriously never run into this before? Do I always just give up and work around this problem? Denial ain’t just a river in Egypt.

This entry was posted in CSS, From the old blog, Tests. Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>