You are here: Re: hide from IE « HTML « IT news, forums, messages
Re: hide from IE

Posted by cwdjrxyz on 05/21/06 18:39

aljosa001@gmail.com wrote:
> please help, I need to hide the bottom margin from IE:
>
> .precaci1 {
> display: -moz-inline-box;
> width:245px;
> height: 69px;
> padding: 0px;
> margin: 0px 0px 12px 0px;
> background: url(images/precac1.gif) no-repeat top left;}
> .precaci1:hover {
> background-position: right;}

Els gave you a method that will work except for IE7. Another way might
be to use the Microsoft conditional comments. You can enclose what you
want to do on IE only between special conditional open and close tags
and what you want to do on all other browsers between NOT conditional
tags. These special conditional tags are understood by IE browsers
only. Other browsers just see them as ordinary comments. I have an
example at http://www.cwdjr.info/broadbandMedia/formatsAX/cancanWMV.php
.. Although this is a different application from what you are using, it
illustrates the basic principle. The code between the conditional tags
that starts with "if IE" uses an ActiveX object for IE browsers. The
code between the second set of NOT IE conditional tags uses an ordinary
object for browsers other than IE. I don't have IE7 yet, so someone
else would have to test the Microsoft conditional comment approach on
it, should you decide to go that route.

 

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

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