IE6 is a bitch

Status
Not open for further replies.

HairyHun

Masturbating Bandit
Oct 11, 2007
576
2
0
I am having a 2 pixel bug and just can't the reason.

Basically the width is set to 800px but some reason the main container is at 801 or 802 depending on the pages. There is no large picture that forces it to stretch and a larger value is not specified anywhere.

Here is a link

Please help

THanks
HH
 


IE automatically places a 2px padding/margin around a load of shit when every other browser respects your code.

You can usually get around this Microsoft stupidity by adding a padding:0px; and a margin:0px; into your CSS for this element.

Or specifying each margin/padding attribute in your CSS. IE is a useless fucking browser, anything by Microsoft is pretty much filled with holes.

EDIT: By the way except for a very small 1px glitch it looks just fine in FireFox and IE 7(I think its 7 I'm rendering at, might be 8).
 
it sucks that there's still a decent market share of IE 6 users. it's a pain in the ass to test for.
 
As I say, fuck IE 6. If their still running it, their still retard anyways. They probably won't even notice the problem.
 
I don't even bother designing for IE6 anymore. Since January of this year, out of all of the visitors to all of my sites, only 4.54% has used IE6.

well the difference between webdevelopment / hosting / blogging etc etc sites and other genres is incredible
in a webdevelopment site I run I have 35% of visitors that use IE (6 and 7) and 50 % that use firefox

in a websited that has nothing to do with webdevelopment I see 70% IE and 14 % Firefox

to answer the original question IE renders tds and divs adding padding to the width
so if you have a div that is 100px wide and has 3px padding left and right, IE will make it 106 pixels wide screwing your layout
the solution is setting the width of the element, and inserting another div inside the outer one where you set the padding and not the width
 
^^^ exactly. IE6 is (unf******fortunately) still used in many places. Think of large companies who don't rely on the internet but have it for their employees - it would cost them a lot to upgrade all their computers to a newer IE version.

I see the same average % of ~20% for IE6 across many client's sites. And then there is Browser Statistics - reason enough for me to include cross-testing and hacking for IE6 in all my work. It may be 8 years old and the worst piece of software around, but it is still in use. So as a developer, I can't simply ignore it.

This doesn't mean that I don't count the days until those 20% still using this relict will be somewhwere around 5%. That's when I will be dropping support for IE6, and throwing a party. Like many, many others.
 
IE6 doesn't add the extra pixels all the time... it's called the "double float margin bug" and it's a frickin' headache if you don't know what to look for. Google it for solutions to the problem.

Alternatively you might have a box model error. That's because IE5/6 renders padding on divs differently than every other browser. Container divs shouldn't have padding, put padding or margins on the content in them instead.

Unfortunately it's still necessary to design for IE6 because as was pointed out, depending on your niche, you may still have significant percentages of visitors using it, and what smart businessman is going to disregard 20% or more of their visitors? Browser Statistics

Good luck!
 
I used to designed simple pages with some CSS and i've always igonred IE.. :-P

Curse IE. I've used iframe on one of my affiliate offer for about a month, and i just realized why my epc was so low. IE simply just doesn't work properly with iframe, thus almost 40% of my sales from iframe aren't being counted.
 
Shouldn't the title of the page say "Welcome to THE Dealrship". and not "Welcome to Dealership"

ok. :-P

Edit:
oh, i see Dealership is replaced with the name of your dealership. hummm;
 
Days like these, Yahoo's CSS Reset comes in handy
Yahoo! UI Library: Reset CSS

If you use it at the initial loading of your styles, it'll reset most of the block objects so that initially they're the same in all browsers. Thus all undeclared changes would render the same in all browsers.

I hardly use that, but it does come in handy. I avoid most problems by making sure to work in an XHTML Doctype (which puts IE into sort of a quirks mode. ), but I haven't coded with IE6 in mind in like... forever.
 
Yes, the more people that encourage people to get this the times and upgrade their browser (and why not IE7 is free, among other options) is a good thing.
 
Status
Not open for further replies.