The Wonderful World of Collapsing Margins in CSS (Or how I learned to hate the web)

I’ve been trying to make an <A> tag look like a nice button when you hover over it. The problem I have is that the unhovered state has no border, while hovered state does have a border. No matter what I seemed to do I could never get the two to look the same with their margins until I discovered the wonderful world of Collapsing Margins.

God I hate HTML…

Advertisements
  1. Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: