I have a web application that I'm working on for work and its not very Firefox friendly (design was made 2 years before I started with the company). There are some CSS issues that I am having problems with and I can't use a CSS Reset because the page design is pretty much set in stone and it would cause more work then I need right now.
Does any one have a list of IE's default CSS values so I can set it in a css so this thing will be more Firefox friendly?
No, it is generally not possible. Once some CSS (or HTML) code sets a value for a property on an element, there is no way to undo it and tell the browser to use its default value. It is of course possible to set a property a value that you expect to be the default value.
In short, there's no easy way to restore to default values to whatever a browser uses . The closest option is to use the 'initial' property value, which will restore it to the default CSS values, rather than the browser's default styles.
The initial value of a CSS property is its default value, as listed in its definition table in the specification. The usage of the initial value depends on whether a property is inherited or not: For inherited properties, the initial value is used on the root element only, as long as no specified value is supplied.
We can change the default value of how will the HTML element be rendered using the CSS Display property. NOTE − The <div> element has a default CSS display set to block and <span> element has a default CSS display set to inline.
Here is a CSS comparison chart. IE actually stores the CSS settings in the ever-so-dumb-place, the Registry. Another issue is whether the doctype of your application is using standards mode or quirks mode.
If it's using quirks mode, you're in trouble. Fixing things for non-IE issues will break IE issues etc. You will go insane.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With