cgm225 Posted August 26, 2008 Share Posted August 26, 2008 I have an image of my e-mail address on this webpage. In FF, it is vertically aligned just how I want it, even with the add to AIM link. HOWEVER, in IE, the e-mail image is moved up several pixels too high. Any ideas how to fix this in IE? Thanks again! Quote Link to comment Share on other sites More sharing options...
jordanwb Posted August 26, 2008 Share Posted August 26, 2008 Thankfully IE has conditional CSS (and only IE). You can implement it like this: <!--[if IE]> <style> .class_name { } </style> <![endif]--> You can use that to override the positioning. This goes in the <head> section after any other CSS. Quote Link to comment Share on other sites More sharing options...
cgm225 Posted August 26, 2008 Author Share Posted August 26, 2008 Any non-hack options? Quote Link to comment Share on other sites More sharing options...
jordanwb Posted August 26, 2008 Share Posted August 26, 2008 None that I know of. What image were you referring to on the webpage? Quote Link to comment Share on other sites More sharing options...
twilitegxa Posted August 27, 2008 Share Posted August 27, 2008 Could this also work for spacing between list items? Does it have to go in the head section? Can it go in the external css script? Quote Link to comment Share on other sites More sharing options...
jordanwb Posted August 27, 2008 Share Posted August 27, 2008 Could this also work for spacing between list items? Does it have to go in the head section? Can it go in the external css script? Yes, Yes and I do not believe so. Quote Link to comment Share on other sites More sharing options...
haku Posted August 27, 2008 Share Posted August 27, 2008 Any non-hack options? Conditional comments (which is what jordanwb showed you) aren't hacks, they are just comments. IE however, has been set to read these comments as if they were code. In this case, they are your only choice. In other cases, there are ways around using them, such as using padding on a parent element rather than margins on a child element. But such is not the case this time. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.