you all aware about cross browser issue and the disturbance of internet explorer. when there is a scene where firefox and internet explorer is showing different output or need different padding, margin i use php to control it. like

$version will either be "not IE" or "6", "7", "8" you get the picture.

This is not the way to sort you problems though.

Zangeel

08-29-2009, 12:28 PM

I think php is an overkill, firstly, using a stylesheet is much better, and HTML allows you to add conditionals much easier than SS programming languages.

For example

<!--[if IE 6]>
Do this if theyre using IE 6 .. most would use this to include a stylesheet specifically for ie 6
<![endif]-->

Fou-Lu

08-29-2009, 01:05 PM

I think php is an overkill, firstly, using a stylesheet is much better, and HTML allows you to add conditionals much easier than SS programming languages.

For example

<!--[if IE 6]>
Do this if theyre using IE 6 .. most would use this to include a stylesheet specifically for ie 6
<![endif]-->

I was thinking the same, why use PHP to do the extra work when there are good IE hacks to use?

abduraooft

08-29-2009, 01:17 PM

give me some link of good website where would i get huge cross browser issues. If your markup is perfect, then you don't generally need many hacks for your pages. On the other hand, if your markup is big mess, then no one (among PHP, CSS/javascript hacks, conditional comments) can save you.