Add your website to the Xemion web designer directory and gain highly-targeted traffic and new leads.

IE Conditional Statements

Post Reply
 
Thread Tools
 
#1 September 19, 2007 by Talks_44 - Junior Member, 12 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
Is it posible to have IE conditional CSS statments? Im using a div and two images to make up a rounded corner content area (small one) so its
top image
div with bg
bottom image

but in IE the top images shows up higher than the div leaving a space. so Is there a way for me to put in the CSS file
if end user is using IE then position:relative; top:5px; so that the image can move down 5px and connect to the div?
 
#2 September 24, 2007 by flann - Junior Member, 12 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
you can use a browser detect with javascript, and then apply a different style based on the browser.
 
#3 September 24, 2007 by Talks_44 - Junior Member, 12 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
Quote:
Originally Posted by flann
you can use a browser detect with javascript, and then apply a different style based on the browser.
Finally I have discovered that ..haaa..
 
#4 December 24, 2007 by manni - Junior Member, 4 posts PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
then u can share it with us..
 
#5 December 24, 2007 by Xemion - Administrator, 126 posts Indianapolis, Indiana PHP: , RoR: , CSS/XHTML:  , Design: , Javascript: , ASP/.NET: , SEO: , SQL: Reputation Level
The only browser I used hacks on is IE6 and I use IE conditional statements for that. Look on the source code for www.LangdonMortgage.com or the latest version of this site (due to be implemented Jan. 07).
James Paden - Xemion.com
Quote
Post Reply

Thread Tools