How can I fix this kind of problems?
Is there any manual or program that can help me to fix it?
I use css and don't know how to fix a compatibility problem.
I would like a compatibility list also.
-gs
either find a way to get it working with a single css file, or write a simple headding to load different ones for different browsers.
such as,
| Code: |
<!--[if IE]>
<link rel=stylesheet href='iemain.css' type='text/css' />
<![endif]-->
<!--[if !IE]><!-->
<link rel=stylesheet href='main.css' type='text/css' />
<!--<![endif]--> |
That will load a differnt css file for IE than for FF or netscape
if you follow webstandards and your html/xhtml/css has a correct markup, according to W3C's specifications, you should have no problems with layouts at all... just some minor stuff...
the problem gets bigger when you goes to the ie world... ie is a browser that does not follow webstandards, so you will get some problems... you can use the conditional comments for ie to load a different css that corrects the layout...
| Saber wrote: |
| Code: | <!--[if IE]>
<link rel=stylesheet href='iemain.css' type='text/css' />
<![endif]-->
<!--[if !IE]><!-->
<link rel=stylesheet href='main.css' type='text/css' />
<!--<![endif]--> |
|
Both are same, could I change 2nd one to FF? And where must I put this..In the index.html file?
| timerecords wrote: |
| Saber wrote: |
| Code: | <!--[if IE]>
<link rel=stylesheet href='iemain.css' type='text/css' />
<![endif]-->
<!--[if !IE]><!-->
<link rel=stylesheet href='main.css' type='text/css' />
<!--<![endif]--> |
|
Both are same, could I change 2nd one to FF? And where must I put this..In the index.html file? |
They aren't the same on is "if IE" and the other is "if not IE" the ! means not and you should put it in the <head>...</head> part of the file... I usually put it below the <title> tag... though this is the first I've heard of the conditional comments... is there any website that I can read more about this on?
Is there a list of what CSS properties that ie does support?
thanks
http://www.w3schools.com/css/default.asp
browse in the left menu
CSS Background
CSS Text
CSS Font
CSS Border
CSS Margin
CSS Padding
CSS List
there's a table with the main browser engines that support and do not support the feature...
Hey thanks a lot, that was very helpful.
-gs
Please note that even if a browser supports the CSS attribute listed, it may not work correctly. This is because some browsers do not render certain CSS attributes correctly. I had this problem where my site passed HTML validation without any problems but IE had a positioning problem.
| yjwong wrote: |
| Please note that even if a browser supports the CSS attribute listed, it may not work correctly. This is because some browsers do not render certain CSS attributes correctly. I had this problem where my site passed HTML validation without any problems but IE had a positioning problem. |
yes people, he's a 100% right, I also had problems like this, but I bet most of you already had this problem 
Well, I'd like to first say I think we as "web designers" if you will, should stop catering to browsers lack of compliance a standard... people will get mad if they can't ever view pages right in IE and MS will have to fix IE or everyone will start using a different browser... likewise with the problems in all the other browsers out there. If we keep letting them control us... we're going to be killing ourselves trying to make OUR sites look the way we want! Screw that! I've almost completely given up on IE... MS knows that a good majority of the people who have computers/internet are going to be using IE and and we're dumb enough to let them take advantage of that... I have converted my parents and grandparents to Firefox... if I can do that we can all get our friends and family to switch to the browser we think is better and leave the ones that suck to rot! That should be the first step in making the internet a better place. And of course I know that there are going to be bugs in browsers and that's fine but flat out refusal to make the browser more compatible is bull! Ok... I'm done ranting... I feel better 
| codeman wrote: |
Well, I'd like to first say I think we as "web designers" if you will, should stop catering to browsers lack of compliance a standard... people will get mad if they can't ever view pages right in IE and MS will have to fix IE or everyone will start using a different browser... likewise with the problems in all the other browsers out there. If we keep letting them control us... we're going to be killing ourselves trying to make OUR sites look the way we want! Screw that! I've almost completely given up on IE... MS knows that a good majority of the people who have computers/internet are going to be using IE and and we're dumb enough to let them take advantage of that... I have converted my parents and grandparents to Firefox... if I can do that we can all get our friends and family to switch to the browser we think is better and leave the ones that suck to rot! That should be the first step in making the internet a better place. And of course I know that there are going to be bugs in browsers and that's fine but flat out refusal to make the browser more compatible is bull! Ok... I'm done ranting... I feel better  |
you're totaly right man, but alot of people use IE and if your website isn't goodviewed in IE then alot of people won't visit your page 
| timerecords wrote: |
| codeman wrote: | Well, I'd like to first say I think we as "web designers" if you will, should stop catering to browsers lack of compliance a standard... people will get mad if they can't ever view pages right in IE and MS will have to fix IE or everyone will start using a different browser... likewise with the problems in all the other browsers out there. If we keep letting them control us... we're going to be killing ourselves trying to make OUR sites look the way we want! Screw that! I've almost completely given up on IE... MS knows that a good majority of the people who have computers/internet are going to be using IE and and we're dumb enough to let them take advantage of that... I have converted my parents and grandparents to Firefox... if I can do that we can all get our friends and family to switch to the browser we think is better and leave the ones that suck to rot! That should be the first step in making the internet a better place. And of course I know that there are going to be bugs in browsers and that's fine but flat out refusal to make the browser more compatible is bull! Ok... I'm done ranting... I feel better  |
you're totaly right man, but alot of people use IE and if your website isn't goodviewed in IE then alot of people won't visit your page  |
Your right too... and if enough people write their sites to standards then people whose browsers don't display it properly will get pissed off and start getting after companies to fix their browsers... because right now they have no reason to make their browsers follow standards, cuz we keep catering to them... maybe that's just me... 