|
Posted by dorayme on 05/22/06 01:47
In article
<1148225954.015587.314940@j55g2000cwa.googlegroups.com>,
"cwdjrxyz" <spamtrap1@cwdjr.info> wrote:
> 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.
Can you think of any practical reason to choose this conditional
route over the utterly simple and easy to remember Els
suggestion? Perhaps if there is a lot of stuff you want to only
IE <7 to see?
--
dorayme
Navigation:
[Reply to this message]
|