Category Archives: Tests

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 [...]

Also posted in CSS, From the old blog | Leave a comment

FTOB: CSS width property does exactly what you would expect it to

Originally posted on 10/19/08 at http://likesalmon.wordpress.com
The other day I was laying out a wordpress driven site in css and realized that I didn’t actually understand how the “width” property works. This was extremely embarrassing to admit to myself, because it means I’ve been flubbing and cheating my way through the layout of every website [...]

Also posted in CSS, From the old blog | Leave a comment