CSSKarma

display your <style>

IE7 Base Tag Issues

This is just a quick post because I noticed a fair amount of people have been asking about a problem in IE7 with how a base tag acts.

Previously in Internet Explorer you could put a base tag anywhere on a page and it would work fine. Now you have to put it in the <head> tag, and you can only use one per page.

the public outcry: "what the hell? why'd they do that?"
the karma answer: "it's small step microsoft took towards being more standards compliant, let's embrace it."

This may be a huge pain for a lot of developers because it probably broke a lot of things (images, links, etc.) but I assure you, it's a good thing and they're heading in the right direction. So, right after </title> use:

<base href="http://www.yourwebsite.com"></base>

also, i don't think its a self closing tag anymore so you need the </base> at the end.

Here's a full description of the new IE base tag policy: http://blogs.msdn.com/ie/archive/2005/08/29/457667.aspx

with ease,
_tim

Picasa feed

  • 2008-matadorLocation: Malibu, CADate: Aug 23, 2008Number of Photos in Album: 53View Album
  • 2008-uscDodgersLocation: Los Angeles, CADate: Aug 14, 2008Number of Photos in Album: 46View Album
  • 2008-movingLocation: Santa Monica, CADate: Jul 30, 2008Number of Photos in Album: 43View Album
  • 2008-GoingAwayLast weekend in RaleighLocation: Raleigh, NCDate: Jul 18, 2008Number of Photos in Album: 54View Album