html - CSS check for Chrome, IE, Firefox -


When I present my web site, I have seen a small alignment problem in three major browsers like I have the following proxy with pure CSS How can I code? If WebKit (Safari / Chrome) {#myDIV {margin-top: -3px}} and if (Firefox) {#myDIV {margin-top: 0px}} other {// IE and other browsers # iiidi {margin-top: 1px}}

you use can do.

However, I do not recommend it.

For IE, you can create a separate CSS file or & lt; Style & gt; Tags inside one, like this:

   

Comments