Jump to content

What the best way to deal with cross-browser compatibility

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1
solartic

solartic

    Learning Programmer

  • Members
  • PipPipPip
  • 95 posts
Hey guys

I just stated learning CSS which is surprisingly fun for the most part, however I'm not sure what the best method to deal with cross-browser compatibility issues is. I seem to be doing ok with compatibility among most browser except IE.

Based on what I've read these are the suggestions I'm seeing

quirky mode
Using css hacks
alternate style sheets
and some even seem to suggest that a single style sheet can be used
and using some form of JavaScript add-on to aid with layout


I'm a bit curious to know what other person are using to sole this issue.



#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It gets uglier than that. IE6 is still quite popular, which is far more limited than IE7 and IE8. What I usually do is get it working on FF, then figure out what failed in IE and attempt to create "fake" CSS rules that IE will parse and other browsers reject to address them. The whole thing is a pain, though.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
solartic

solartic

    Learning Programmer

  • Members
  • PipPipPip
  • 95 posts
Thanks for the reply WingedPanther, It's really interesting to here another developers in-sign on this painful issue. This really clashes with the designer side of me, I'm almost scared to create anything too complicated since that generally mean more headaches.

#4
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,675 posts
ie6 sucks!!!!
if i want to torture someone i would through ie6 into his face.
i usually care for ie7 and ie8 and not care abut ie6 unless im asked to. i usually use single css with alot of css hacks
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#5
solartic

solartic

    Learning Programmer

  • Members
  • PipPipPip
  • 95 posts
Well im not really planning on supporting IE6 for any current projects, If I see that I can make it compatible to some extent without much headache ill give it a shot otherwise ill just stick with 7 & 8. lol looks like you through ie6 in your avatar face.

And thanks for sharing your approach.

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
Unfortunately, for me, I write code that is going to be used primarily by people at their business computers. Those, unfortunately, are still about 40-50% IE6. I did some work to redesign a dropdown menu to be a pure CSS menu instead of a JS menu (much cleaner and easier to maintain), and getting it to work on IE6 required a ton of gyrations. It worked perfectly on IE7+ and FF once I got the doctype correct.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
amrosama

amrosama

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 8,675 posts
When it comes to javascript i stick with a framework like jquery or mootools. if you use 100% framework functions you will have js that works on all browsers including ie6
yo homie i heard you like one-line codes so i put a one line code that evals a decrypted one line code that prints "i love one line codes"
eval(base64_decode("cHJpbnQgJ2kgbG92ZSBvbmUtbGluZSBjb2Rlcyc7"));
www.amrosama.com | the unholy methods of javascript

#8
solartic

solartic

    Learning Programmer

  • Members
  • PipPipPip
  • 95 posts
WingedPanther I really hope the death of ie would move faster.

I'm currently using jquery as well, just did some reading today about css frameworks and or css resets. They dont seem to be as accepted as JS frameworks those which seem to be mainly atributed to their bloatedness and restrictions in terms of customization. for now i want to be able to do most of my css on my own, but it's someting i plan on looking into ,ore in the near future.

So what you opinions on the whole idea of css framework.

#9
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I've seen some CSS frameworks that help you accomplish some very nice things. Overall, I haven't found any that are particularly useful for what I do, unfortunately.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#10
solartic

solartic

    Learning Programmer

  • Members
  • PipPipPip
  • 95 posts
Thanks for sharing your experience, ill be kepping on eye on these CSS frameworks.