Arjan Eising

Pages

Feeds

You can subscribe to my feeds to get notified when I have written a new post, using RSS or Atom.

Categories

Archives

CODE element in IE

Building a template I found a problem in the rendering of the CODE element in Internet Explorer. Sometimes in IE (all versions including IE7) the font size of it was not the correct one, but an unreadable smaller size.

The way to solve this problem is to add a simple CSS-declaration into you style sheet where you specify the CODE element:

code { font-size: 100%; }

Not very hard, isn’t it?

7 responses to CODE element in IE

Respond

Post a comment

Like you, I hate spam. So your e-mail address will not be shown on this website, nor sold to the rich and notorious. For your comment you can use the daily XHTML elements: a (do use the title attribute, please), abbr, acronym, blockquote, code, em and strong. Remember, your comment needs to be written in English, and also be an useful addition to the article or other comments. If not, I might want to delete your comment.