Hide spread firefox in firefox but show in IE

taha116

Member
Messages
505
Reaction score
0
Points
16
So my issue is that my script display properly in FF but not in Ie... in Ie for somereason there is a gap near the bottom that really shouldnt exsist.

There i want to put a spread firefox banner however then it will show in FF to.
So I am looking for a script that will show the banner in Ie but not FF?

Any scripts you guys know of or can come up with?

I know i came across such a script over a year ago but cant find it now.
 
Last edited:

TechAsh

Retired
Messages
5,853
Reaction score
7
Points
38
Try this:

HTML:
<!--[if IE]>

CODE GOES HERE

<![endif]-->

Code in between the tags above will only be shown for Internet Explorer browsers.
 

taha116

Member
Messages
505
Reaction score
0
Points
16
wow... that is simpler than i would have thought is that suposed to be html?
 

sourfacedcyclop

New Member
Messages
221
Reaction score
0
Points
0
Its a conditional statement. A lot of times you will see it used in the head tag to link to another stylesheet for IE to use.
 

loveispoison

Banned
Messages
323
Reaction score
0
Points
0
Try this:

HTML:
<!--[if IE]>

CODE GOES HERE

<![endif]-->
Code in between the tags above will only be shown for Internet Explorer browsers.

thanks i could use this 2 didnt tought it was so simple :biggrin:
 

taha116

Member
Messages
505
Reaction score
0
Points
16
Thanks mission for the refrencs.

And yea i know i didnt think things would be so simple when it came to that. I was thinking it would be atleast 2 lines of JS... Thanks Im sure not just me but allot of people will find your posts helpfull
 

xav0989

Community Public Relation
Community Support
Messages
4,467
Reaction score
95
Points
0
IE is one of the worst standard supporter, but at least they created the conditional statements (not standard!) which can help developers create code to tune up the look and workability in IE.
 

taha116

Member
Messages
505
Reaction score
0
Points
16
Yeah i know, And thanks again TechAsh it worked great!

Ie has given me endless troubles and headaches, i use firefox make a perfect site and then find out theres a major flaw in IE... Cross browser compatibility... Vital to anyone whos workin on sumthing new.
 
Last edited:
Top