Results 1 to 6 of 6

Thread: How to make compatibale a css design for all the browsers?

  1. #1
    Join Date
    Mar 2012
    Location
    Gardena,California,USA
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to make compatibale a css design for all the browsers?

    I made a web page with HTML and PHP and design it with CSS. When I open this webpage in Mozill aFirefox, it works as I designed but when I open it in Internet Explorer, the design of page does not according to the settings I designed in CSS file. How to fix it?

  2. #2
    Join Date
    Jan 2012
    Location
    India
    Posts
    45
    Thanks
    12
    Thanked 1 Time in 1 Post

    Default

    show your code

  3. #3
    Join Date
    Mar 2011
    Posts
    1,924
    Thanks
    59
    Thanked 105 Times in 103 Posts
    Blog Entries
    4

    Default

    This is a very general question and we will need more information to help you.
    Please post a link to your site with the problematic pages or if this is not possible, the code for the pages you're having trouble with.
    Last edited by keyboard; 03-17-2012 at 08:55 AM.

  4. #4
    Join Date
    Mar 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    To deal with such situation, have separate stylesheet for IE and Firefox and you can prompt the browser to use the CSS compatible with it in HTML header.

  5. #5
    Join Date
    Mar 2011
    Posts
    1,924
    Thanks
    59
    Thanked 105 Times in 103 Posts
    Blog Entries
    4

    Default

    While you can have separate css files for different browsers, wouldn't it be easier (and take up less space - marginal -) to just alter the code you already have to make it display the same in different browsers?

  6. #6
    Join Date
    Apr 2008
    Location
    So.Cal
    Posts
    3,643
    Thanks
    63
    Thanked 516 Times in 502 Posts
    Blog Entries
    5

    Default

    1. Design in a standards-compliant browser.
    2. Test in other browsers.
    3. Adapt.

Bookmarks

Posting Permissions

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