Jump to content

IE and Firefox CSS


Recommended Posts

i am trying to figure out how to make a web page use CSS for firefox and IE.to do this:if the user is using Fx then the page will use Fx CSS automaticallyif the user is using IE then the page will use IE CSS automaticallyis there a way to do this automatically, without having to create a page for each browser and/or to have the user pick their browser?thanks for all the help and ideas... :)

Link to post
Share on other sites

Code the site to render correctly in FF. ALWAYS validate your code during your progress so you can catch your errors.Now look at the site in IE. You may or may not have to change anything but just tweak a margin or padding here and there. If you do have to make changes that can't be resolve for both browsers, then you would make sure it works in FF and then use Conditional Comments for IE. You can either embed the styles or you can put the css in a style sheet and use @import.You don't have to make two seperate html pages for each browser.Do a search for 'Conditional Comments' and you will find more info how it works. Avoid hacks.

Link to post
Share on other sites

I know there's the conditional comments but I have always used 1 stylesheet for all browsers, I just find a way to make it all work. To me it's just that much cleaner.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...