Weblog: November 23, 2003

Entries

Weblog entries posted on this day.

Stop making me cry, Internet Explorer

Posted
November 23 2003

I have been breaking my head over why the margin and padding for image links (<a href=""><img /></a>) that I declared in my StyleSheet were not working for Internet Explorer. Usually I'm not surprised if something that works in a Gecko based browser doesn't work in Internet Explorer, but in this case it was really messing with my mind because I got it working for other websites before. Today, I decided to compare one of the websites it was working for with my homepage step by step. I started by comparing the StyleSheet line by line, but I didn't find the problem there. Then, I decided to compare the XHTML documents. It appears that the "problem" lays in the very first line of the source code of my XHTML documents. On the website it was working for, I used the meta element to declare the encoding, where I'm using a XML decleration for my home page. Taking out <?xml version="1.0" encoding="UTF-8"?>, and adding <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> to the head fixes the problem, but that leaves me with a big delemma. I do want Internet Explorer users to see the padding of image links, since it's a rather important entity in the design of this site. On the other hand, I'm not a big fan of using http-equiv in XHTML.

Hmm...

Darnit, I just lost 5 consecutive FreeCell games. My previous record of straight losses was 2. It dropped my win percentage to 81%.

Some might call me a nerd

Posted
November 23 2003
Screenshot (limited interaction possible)
Screenshot of digital IQ test results.

External

This day, elsewhere.