6 Replies - 765 Views - Last Post: 24 August 2013 - 05:44 PM
Posted 23 August 2013 - 04:49 PM
I guess this is an age old question "how do you get your code running in all browsers"?
<!--[if lt IE 9,]>
I know there are 'if statements' like this that change the code output but how do you know beforehand?
Is this what firebug is for? Building it in one browser then using a debugger so it runs in other browsers?
All tips welcome thanks!
Replies To: Debugging?
Posted 23 August 2013 - 05:07 PM
Probably a problem with the file paths. Not sure what the differences between Safari and Chrome would be in that department, but since it's a Apple browser there probably are some.
Show us the code and we might be able to help.
How do you mean?
Those are only for Internet Explorer. All the other browsers ignore them as normal comments. (Which they are.) Microsoft just added them for IE because IE8 and lower had no concept of standards compliance, and people needed a way to add IE-only code blocks to fix IE's rendering issues.
No, it's not. Firebug is the Firefox developer console. It debugs code running in Firefox. All the other browsers have their own, built-in versions of Firebug.
If you want to make your code ruing in all the popular browsers, you need to stick as close to the standards as possible, and then - if necessary - just add browser-specific fixes to fix whatever deviations from the standard exists in each browser. If one browser is misbehaving, debug the problem using that browser's developer tools. (Usually just need to press F12 to get the console up. Except in Firefox, you need to install the Firebug addon first.)
Posted 23 August 2013 - 05:29 PM
I created the images in a trial version of photoshop and they actually corrupt when i try to open them but they still display in safari...
Posted 23 August 2013 - 05:50 PM
I know its stackoverflow but i found it off google (sorry dream in code) />
I guess my question at this point is how do you get an image to work in chrome that works in safari
This post has been edited by jimbang: 23 August 2013 - 05:54 PM
Posted 23 August 2013 - 10:17 PM
Posted 24 August 2013 - 05:44 PM
try to use code that works cross platform before you test it and pull your hair out...
enjoy your saturday, rush hour 2 starts in 15 minutes on tbs