• Facebook
  • Feedburner
  • Foursquare
  • Google
  • Linkedin
  • Twitter
  • Youtube
  • Web Design
    • Landing Page Web Design
    • Web Design Pricing
    • Website Optimization
    • Website Maintenance
    • Web Design Process
    • Web Design FAQ
  • CMS Web Design
    • WordPress Design Experts
    • Drupal Design Experts
    • Joomla Design Experts
  • eCommerce Web Design
    • Open Cart Design
    • OSCommerce Design
    • Zen Cart Design
  • SEO Service
    • SEO Plans and Pricing
    • Social Media Marketing
    • SEO Copywriter
    • SEO Website Design
    • Search Engine FAQ
  • Portfolio
  • About
    • Why Choose Us
    • Our Rates
    • Web Design Affiliations
    • WordPress Tutorials
    • What is the Client SEO Portal?
  • The Blog
  • Contact
Call Now: 1-866-396-1181

IE Bugs that will…Bug You….

Posted on April 21, 2010 by CQuinnDesign in Website Design No Comments
Home» Website Design » IE Bugs that will…Bug You….

Yes, there are still people who prefer to use Internet Explorer 6. If you do use this browser, please email me so I can….uhh…provide you with a “special link” to update your computer…lol…. Seriously though, here are some bugs that will help you get over your Internet Explorer Icon blue’s….

  website design

The Box Model

This is perhaps the most common and frustrating bug of all in IE 6 and below. Let’s say you declare a box like this:

div#box {
   width: 100px;
   border: 2px solid black;
   padding: 10px;
}

IE 6 will calculate the width of the box to be 100px.
Modern browsers will calculate the width of the box to be 124px.

This kind of discrepancy can cause HUGE layout problems. I even think the IE version makes a little bit more sense logically, but that is not how the spec was written. IE 6 can actually get it right if you are in standards-compliant mode, which is rare these days as just using an HTML 4.0 transitional doctype will trigger quirks mode and the box model problem.

I generally work around this issue by just not using padding on boxes I am using for layout. If that box has some text inside it in a <p> element, I’ll apply the padding it needs directly to that p element. Just side-steps the issue, but it works.

The Double Margin Bug

Using our box example from above, let’s say we need that floated to the right:

div#box {
   float: right;
   margin-right: 20px;
}

IE 6 will double the 20px to 40px. Again, causing potentially huge layout borks. The commonly thrown-around “fix” for this is to add “display: inline;” to the div. I’m not sure how this “fix” got so much traction, but its a bit impractical. We can’t set static widths on inline elements, now can we?

I also like to side-step this bug whenever possible. If you really need to push that box away from the right side of it’s parent element, you can likely do so by adding padding to the parent element, which is more likely to keep your grid consistent anyway. Also don’t forget about padding. This bug does not affect padding, so you can offen get away with adding padding to the side you need an achieve the same result.

No Min Widths / Min Height

Setting min-width and min-height on elements is such a natural and logical thing that it makes me tear up sometimes thinking I can’t count on them. IE 6 doesn’t just get it wrong, it just completely ignores them. Min-height is incredibly useful for something like a footer. Say your footer needs to be at least 100px tall because you are using a background image down there, but you don’t want to set a static height because you want it to grow nicely if, say, the text size is bumped up significantly. Min-height is perfect for this, but using it alone will get you no height whatsoever from IE 6. In a bizarre twist of luck, IE 6 treats the regular height property like modern browsers treat min-height, so you can use a “hack” to fix it. I call it a “hack”, because I don’t really consider it a hack since it validates just fine.

Stepdown

Normally when floating objects you can count on them lining up vertically until they break. That is, you could if you weren’t using IE 6. IE 6 appends a line break effect after each floated block element which will cause “stepdown”. The fix here is to make sure the line-height in the parent element is set to zero (0), or that the elements being floated are inline elements.

No Hover States

Most modern browsers support hover states on just about any element, but not IE 6. IE 6 only support the hover pseudo-class on anchor (<a>) elements, and even then you don’t get them if your anchor doesn’t have a href attribute. The solution here is to use a proprietary fix, or just deal with not having hover states on everything you want.

No Alpha Transparent PNG Support

*Update: I was totally wrong about the Microsoft thing, no idea how that got in my head. Tom Boutell actually developed the PNG format.

—————————-

Kind of funny that Microsoft themselves developed the PNG format, but their own browser doesn’t natively support it (until IE 7)*. I have a whole roundup of different fixes for this. Do remember that regular non-alpha transparent PNG files work fine without any fix in IE 6, and are often better than their GIF sisters.

—————————-

In conclusion:

There are ways to get around these bugs, and it will take time to work out the kinks.  The best method, however, is to just update your browser! PLEASE
Browser Links:

Internet Explorer 8 (Vista / 7)

IE8 For Windows XP Users

Mozilla Firefox

Google Chrome

  website design

About CQuinnDesign

Owner of CQuinnDesign, LLC - Provides professional website design and development. Also enjoys search engine optimization and getting clients websites to the top of search engines. I love SEO, Web Design, WordPress, Twitter, FaceBook and pretty much anything related to programming and development.

bugs, div, element, Explorer, IE bugs

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Contact Us

Download Our Brochure!

CQuinnDesign Brochure

Our Technologies

Adobe After Affects DesignerAfter Effects Photoshop DesignersPhotoshop
Flash ProgrammersFlash Dreamweaver ExpertsDreamweaver
InDesign DesignersInDesign Illustrator ExpertsIllustrator
HTML5 Web DesignHTML 5 CSS3 Web DesignCSS 3
mySQL Database DevelopmentmySQL OpenCart DesignersOpenCart
PHP 4-5 programmersPHP 4 & 5 Virtualmin ExpertsVirtualMin

Why CQuinnDesign?

When thinking about business and the Internet, there are three things that make a website successful. The design of your website, functionality the code produces and the marketing that gets your site found. At CQuinnDesign you get all three!

Whether it's design, strategy or code, we'll guide you through the process of a whole Web solution that works.

What can we do for you?

Founded in 2006, CQuinnDesign, LLC is located in New Port Richey, FL in the heart of the Tampa Bay Area. Our team is dedicated to creating Top Ranking Web Designs & SEO strategies.

Our blog is full of in-depth resources and training articles related to development, social media, marketing, SEO and more.

Contact Us

  • Toll Free: 1-866-396-1181
  • Local: 1-727-569-1079
  • https://www.cquinndesign.com/payment-page/
  • Contact Us
  • cquinndesign
    • Facebook
    • Google
    • Twitter
Make a Payment
Merchant Services

(c) 2012 CQuinnDesign, LLC - Web Design by CQuinnDesign - Lizardjuice.com