This is my first venture into simple browser detection.
I have a little image script that needs different centering code between Firefox and IE.
So this is what I have (it works except as explained below):
IE7 works fine with this workaround.
Firefox displays correctly but it allocates blank space the same size below the <div> (I assume for the IE <div>)
Looks like Firefox still reads inside the IE browser direction to layout page.
Am I on the right track?
I know this isn't the most elegant solution, any suggestions?
Kyle.
I have a little image script that needs different centering code between Firefox and IE.
So this is what I have (it works except as explained below):
Code:
<![if !IE]> <div id="Carousel" style="position: relative; width: 400px; margin-left: auto; margin-right: auto;"> ... </div> <![endif]> <![if IE]> <div id="Carousel" style="position: relative; text-align: center;"> ... </div> <![endif]>
Firefox displays correctly but it allocates blank space the same size below the <div> (I assume for the IE <div>)
Looks like Firefox still reads inside the IE browser direction to layout page.
Am I on the right track?
I know this isn't the most elegant solution, any suggestions?
Kyle.
Comment