GranDad Posted December 1, 2005 Share Posted December 1, 2005 In my surfing thru html and css sites I came across something that commented code so only IE would use it.It was something like if[iE] ... something. I can''t remember it and can't find the web site that had it. Does this ring a bell?I am having trouble with positioning a textarea and its caption which follows a table. (My design is too far along to use CSS instead of a table.) In IE the caption follows to the right of the last table element. I fixed this with:<p> </p><p> </p><p> </p><p> </p>which pushes the caption down until it floats to the left and above the textarea. But in Firefox this just pushes the textarea and its caption down 4 extra lines.So I want to bracket the above with something that only IE uses.Any help is appreciated!! Link to comment Share on other sites More sharing options...
Paim Posted December 1, 2005 Share Posted December 1, 2005 I usually just add a * before the tag in CSS.p {color:red;}*p {color:green} <---- IE onlyWorks for me 99.ten% of the time. Link to comment Share on other sites More sharing options...
Skemcin Posted December 1, 2005 Share Posted December 1, 2005 can you post a url? Link to comment Share on other sites More sharing options...
GranDad Posted December 1, 2005 Author Share Posted December 1, 2005 In my surfing thru html and css sites I came across something that commented code so only IE would use it.It was something like if[iE] ... something. I can''t remember it and can't find the web site that had it. Does this ring a bell?... snip...II found the answer by searching on Google for "[if IE]"this is 1 of the URL'shttp://www.dithered.com/css_filters/html_o...omments_ie.htmland this is the syntax for HTML (it also gives an example CSS style)"<!--[if ( ! )* ( comparison )* IE ( version number )* ]>HTML content to parse if the condition is true goes here<![endif]-->Thanks for listenning.GranDad Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now