+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Robbm14 is offline Junior Member
    Join Date
    Sep 2009
    Location
    US
    Posts
    24

    Problem with different Web Browsers?

    On my website I am having problems with different things working/not working on different web browsers. Things like over lapping text and margins being messed up. I was wondering what all of my options are to fix this and what is the easiest way to go about fixing it so it fits all browsers.

    thanks,

    -Robert

  2. #2
    avantstar is offline Member
    Join Date
    Sep 2009
    Posts
    70
    Using Divs and floating text, not tables.
    Need Professional Web Development? Logo Design? Business Card Design? or something else? click to find out more!
    The temptation to quit will be greatest just before you are about to succeed.

  3. #3
    mobilefoodguy's Avatar
    mobilefoodguy is offline Junior Member
    Join Date
    Oct 2009
    Location
    Dallas, Texas
    Posts
    11
    The best way to fix this is through browser detecting scripts. If you are using dynamic pages such as PHP or ASP you can setup a browser detection script and then serve the appropriate page to the requesting user.

    You probably have some code on the page that is not "proper" or is "deprecated" html. You should be using CSS (cascading style sheets) as much as possible.

  4. #4
    christophercloud9's Avatar
    christophercloud9 is offline Junior Member
    Join Date
    Oct 2009
    Location
    Novi, MI
    Posts
    37
    Hello,

    Try validating your site through the W3C validator if possible-usually this will ensure code is proper.
    Christopher
    President
    Cloud 9 IT Services
    P.O. Box 1424
    Novi, MI 48376-1424
    www.cloud9its.com
    P: (248) 383-5229
    E: Christopher@cloud9its.com

  5. #5
    mymuto is offline Junior Member
    Join Date
    Oct 2009
    Posts
    10
    I agree to stay away from tables and use floating divs. Also, you should check your paddings since that can cause differences in browsers. Most problems I came across and I'm sure lots of others is with IE. You should read up on its quirkiness.
    MyMuto| you bid for gigs

    http://www.mymuto.com

  6. #6
    KarenWalsh is offline Junior Member
    Join Date
    Oct 2009
    Location
    Cairns, Australia
    Posts
    4

    Standardising display in different browsers

    Hi Robert

    A neat trick I found a while ago was to use the following line at the top of your Cascading Style Sheets:

    * {margin: 0; padding: 0;}

    This tells all browsers to use no margins and padding on all elements. You then have to go back and add margins and padding yourself. For instance at the botttom of paragraphs, as follows:

    p {margin-bottom:1em;}

    I now have very few problems of the kind you mentioned. If you are using tables, then you would first need to set the borders and padding to 0 at first and then reset them to what you need.
    Karen Walsh

    Web Design Cairns
    Starting a Cleaning Business The Easy Way

    Live in the moment - today is a gift!

  7. #7
    cg410 is offline Member
    Join Date
    Nov 2009
    Posts
    66
    This is terrible advice. You don't need to create a separate version of your site for each browser. If designed carefully, you can create one version that works in all the popular browsers. The only time when browser detection is generally appropriate is for mobile devices because of the small screen resolution.

    Quote Originally Posted by mobilefoodguy View Post
    The best way to fix this is through browser detecting scripts. If you are using dynamic pages such as PHP or ASP you can setup a browser detection script and then serve the appropriate page to the requesting user.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Untitled Document
YoungEntrepreneur Logo Featured on: Business Week About Alltop Wall Street Journal

Terms of Service | Privacy Policy


SEO by vBSEO 3.5.0 RC3