March 24, 200917 yr Hi guys well this is my first post (apart from my introduction) im have probs with an IE fix works ok in FF, Opera and Safari The prob is there should be a 10px margin from top of browser but IE is show about 20px MMMM how do i fix this with an External CSS style sheet
April 7, 200917 yr Hi guys well this is my first post (apart from my introduction) im have probs with an IE fix works ok in FF, Opera and Safari The prob is there should be a 10px margin from top of browser but IE is show about 20px MMMM how do i fix this with an External CSS style sheet Hi, This isn't the most helpful answer but a step in the right direction, im having issues with firefox and I remember seeing somewhere in a css file, that you can add code that should only execute when using a certain browser, im having issues with the footer in my site in firefox. Trouble is, im not sure of the coding involved or syntax but I have posted this and hopefully will get a good response
April 7, 200917 yr Hi, To add specific styles to ie6 and ie7 use this code: <!--[if IE 7]> <link rel="stylesheet" href="css/ie7-fixes.css" type="text/css"> <![endif]--> <!--[if lte IE 6]> <link rel="stylesheet" href="css/ie6-fixes.css" type="text/css"> <![endif]--> This code goes in <head> of an html page and links to two files, ie7-fixes.css and ie6-fixes.css (call them whatever you want but reference them in the code above). The two files contain the css only meant for ie6 and ie7 which is removed from the main stylesheet.
April 7, 200917 yr Different browsers have different margin and padding settings, what might help is to set the body and html ones to 0 like this: html, body { margin:0; padding:0;} You can do this with a global reset like this * { margin:0; padding:0;} However this will reset everything, so paragrpahs and stuff like that will need to have margins set this way, but this will mean that no default spacing will used at all and give you a lot of control.
Create an account or sign in to comment