Suren Posted May 9, 2008 Share Posted May 9, 2008 I want to make margin-top value visible to firefox, opera and make all IE versions ignore it. Or else I want set the margin-top value visible to all versions of IE only and invisible to all other browsers. Thanks. Link to comment https://www.neowin.net/forum/topic/635918-how-to-make-css-margin-value-invisible-to-ieall/ Share on other sites More sharing options...
0 Mathachew Veteran Posted May 9, 2008 Veteran Share Posted May 9, 2008 If you had an IE only stylesheet (included via IE Conditionals) you could specify padding-top: 0; on the class/id. IE Conditionals Link to comment https://www.neowin.net/forum/topic/635918-how-to-make-css-margin-value-invisible-to-ieall/#findComment-589386824 Share on other sites More sharing options...
0 Suren Posted May 9, 2008 Author Share Posted May 9, 2008 If you had an IE only stylesheet (included via IE Conditionals) you could specify padding-top: 0; on the class/id.IE Conditionals Is there any other way? thanks Link to comment https://www.neowin.net/forum/topic/635918-how-to-make-css-margin-value-invisible-to-ieall/#findComment-589386836 Share on other sites More sharing options...
0 Mathachew Veteran Posted May 9, 2008 Veteran Share Posted May 9, 2008 I think there might be !important or whatever in your normal stylesheet (I've never used it). Why are you against using IE conditionals? They're really easy to setup and are not discouraged. Link to comment https://www.neowin.net/forum/topic/635918-how-to-make-css-margin-value-invisible-to-ieall/#findComment-589386875 Share on other sites More sharing options...
0 +mrbester MVC Posted May 12, 2008 MVC Share Posted May 12, 2008 Is there any other way?/quote]Yes, but it involves CSS hacks / currently unsupported features which aren't forward-compatible; subsequent versions of IE may or may not apply them. Conditional comments are the way to go, unless you want to make life really painful and generate your CSS file dependent on the browser the user has... Link to comment https://www.neowin.net/forum/topic/635918-how-to-make-css-margin-value-invisible-to-ieall/#findComment-589393725 Share on other sites More sharing options...
0 primexx Posted May 13, 2008 Share Posted May 13, 2008 Is there any other way? Yes, but it involves CSS hacks / currently unsupported features which aren't forward-compatible; subsequent versions of IE may or may not apply them. Conditional comments are the way to go, unless you want to make life really painful and generate your CSS file dependent on the browser the user has... ...and might i add not nearly as reliable. Link to comment https://www.neowin.net/forum/topic/635918-how-to-make-css-margin-value-invisible-to-ieall/#findComment-589395802 Share on other sites More sharing options...
Question
Suren
I want to make margin-top value visible to firefox, opera and make all IE versions ignore it. Or else I want set the margin-top value visible to all versions of IE only and invisible to all other browsers.
Thanks.
Link to comment
https://www.neowin.net/forum/topic/635918-how-to-make-css-margin-value-invisible-to-ieall/Share on other sites
5 answers to this question
Recommended Posts