www.webdeveloper.com
Results 1 to 2 of 2

Thread: Firefox and Chrome css differences?

  1. #1
    Join Date
    Jul 2011
    Posts
    4

    Firefox and Chrome css differences?

    What are the main issues that arise between Firefox and Google - is there a way to choose a separate stylesheet for each?

  2. #2
    Join Date
    Jul 2006
    Posts
    207
    I can't think of any major differences at the moment, most designs I code I get the same results in Chrome as I do Firefox, there's sometimes slight differences, like the padding is greater or less in Chrome, but I never find anything too major. If you're using jQuery, here's how to designate webkit (namely, Chrome and Safari) for webkit-specific CSS issues:

    Code:
    <script type="text/javascript">
    if ($.browser.webkit) {
    $('body').addClass('webkit');
    }
    </script>
    You can then use the webkit class to fix any issues you find in webkit.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles