My web page design looks the way I want in
Firefox, Safari,Opera and Chrome but looks
terrible in ie6 %26amp; 7.
Do I need to make a separate
css file for ie6 %26amp; 7?
Any related links appreciated.Make ie6 %26amp; 7 render more like Firefox, Safari,Opera %26amp; Chrome?
I suggest using a seperate css file to write out the rules for IE6 and IE7. This way, you are guaranteed to seperate the CSS that works from the CSS that's hacked to make it work.
See the following command to include CSS for both IE6 and IE7:
%26lt;!--[if IE 6]%26gt;
%26lt;link rel=';stylesheet'; type=';text/css'; href=';css/ie-6.0.css'; /%26gt;
%26lt;![endif]--%26gt;
%26lt;!--[if IE 7]%26gt;
%26lt;link rel=';stylesheet'; type=';text/css'; href=';css/ie-7.0.css'; /%26gt;
%26lt;![endif]--%26gt;
Hope it answers your question!Make ie6 %26amp; 7 render more like Firefox, Safari,Opera %26amp; Chrome?
Yes..its a excellent question from you...!! now a days most of the developers facing the problem.... If someone develop a web site... most of the times it wont look the same in all browsers...
So we are using below to fix Browser issues....
1. Special function or javascript code in pages on page load.
2. CSS for different browser and CSS hacks in pages
3. Best solution is use YUI ( Yahoo User Interface Library) too develop your site...NO BROWSER ISSUE in any browser
Generally, IE6 does not support most of the javascript and CSS codes.. So its always showing problem to viewing pages. IE7 too some problems.. And Safari and Opera its little difficult to fix browser problems...Just search code for opera and safari in google you will get solution..
My advice is that use YUI ( Yahoo User Interface Library) to development your site... You will never find any browser issue...
http://developer.yahoo.com/yui/
Its easy try... All the best
Actually its such minor bugs they usually deal with how you float, padding, margins, and please make sure you know your math too because it can cause problems in some browsers too some aren't so strict.
If I were you personally I would learn the information above its the only way you will learn how to do it properly otherwise you are going to waste so much time for something so simple you laugh. I got it down where I just use one css file per page and avoid browser rendering hacks.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment