You are here: Re: IE6 Border Bug <>$%(any ideas? « HTML « IT news, forums, messages
Re: IE6 Border Bug <>$%(any ideas?

Posted by cwdjrxyz on 11/29/06 02:35

silco@uk2.net wrote:
> Hi Everyone..
> hope you can help!
>
> I have a IE6 browser bug,
> most of the common fixes tell me to use relative on my container divs.
>
> This fixed some problems but now I have a left border problem and a top
> riogh corner problem

Yes, IE6 has quite a few CSS bugs. And it appears that many remain for
IE7. I usually write valid code that works on most browsers. If IE acts
up, I then often patch for it with a conditional IE comment. In this
way I do not have to distort correct code for the several standards
compliant browsers just because Microsoft apparently can not make a
compliant browser.

A problem for IE6 and IE7 I just found yesterday was that IE displaced
an absolute top position by 22px, compared with 7 other compliant
browsers that got things correct. I first positioned absolutely a gif
of a picture frame having a transparent center that I made with
PaintShop. I then absolutely positioned 4 video players, that can be
switched on and off, absolutely so that they appeared centered in the
frame. Seven of my recent browsers got it right, but IE6 and IE7
positioned the players 22 px too high on the page, so that they were
not centered in the frame. The page still works on IE, but just looks a
little tacky. I used a Microsoft conditional comment to overcome the
problem, which is:

<!--[if IE]>
<script type="text/javascript">
var tp=102 // top location of player as written
var ieht=tp+22 // top player location corrected for IE bug
document.getElementById('p1').style.top=ieht+'px';
document.getElementById('p2').style.top=ieht+'px';
document.getElementById('p3').style.top=ieht+'px';
document.getElementById('p4').style.top=ieht+'px';
</script>
<![endif]-->

If the response for IE7 had been correct, then there is another IE
conditional that will be seen only up to a certain version of IE that
could be used. My page uses extensive script, so using script for the
correction is no problem. However, if there had been no other script on
the page, the above correction would just be ignored if someone had
script turned off, and the page would still work, but just be a bit
tacky.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация