Add to Google

Programming For Multiple Browsers. - What do you think is the best way?

free web hosting
Open Discussion > CONTRIBUTE > The Internet > Web Design

Programming For Multiple Browsers. - What do you think is the best way?

Shortyjtl00
Hey what do you think is the best way to code a site to appear correctly on multiple browsers? I've been thinking about useing Javascript or think of something in PHP.

Also would it be better for me to use a style sheet or the include or require function in PHP to increase speed for when I have to update my site?

I know how to do these things I'm just wondering wich way is the most effective and the fastest.

Reply

jlhaslip
This Topic has several questions, so I'll break apart your posting to reply to the individual questions.

QUOTE
what do you think is the best way to code a site to appear correctly on multiple browsers?
Use div's instead of tables. Use the validator at W3c.org to validate your code. Avoid proprietary code which is not standard compliant. An exception to that last one is the IE Conditionals for creating IE specific CSS files. Set margins and padding to zero on the * html selector and add it on the element that needs it.

QUOTE
Also would it be better for me to use a style sheet or the include or require function in PHP to increase speed for when I have to update my site?


Both of these will make updates faster. And they can be used together. Php is used to write (x)html code which uses the CSS file for styling. javascript can be turned off in a client's Browser, so that may mess up your presentation or make the features on your site fail to work.

 

 

 


Reply

jamest
If you want to do it in multiple version of internet explorer use Multiple IEs Software
or you could use the firefox IE Plugin in firefox so you can test the site in two browsers.

Reply

AnkitGoswami
My experience says always make a site with IE in mind and it will be displayed well in other browsers also. The other way around it almost always will get messy. I've done some extreme things to get my site towork correctly in IE. Once I even wrote separate css for different resolutions!

Reply

rvalkass
I always make my sites to work in Opera. Opera passed the acid test and is completely standards compliant, so if my site works in Opera then I know my code is right. Then I load it up in each other browser and see what it looks like. The only one to ever cause problems is IE, although gradually over time I have learned how to make sites work in IE and fix specific problems IE creates.

Setting every single option yourself, rather than leaving things as defaults in CSS is usually a good idea as it should make everything look the same. For example, jlhaslip's suggestion of setting borders, padding and margins of the HTML area to 0 means that browser defaults for padding the whole page etc. are overridden, so your page should look the same in each browser.

QUOTE
My experience says always make a site with IE in mind and it will be displayed well in other browsers also.

The problem with this is that most people make it work in IE and then leave it, without even looking at it in another browser. This is why many sites on the web don't work well in Opera or other browsers. And why I often turn away from a site - if they can't be bothered to test and correct their site, what they're selling or saying is normally not that good either. As long as you check your site works in every browser then you should be fine, no matter which way round you do it.

If statements in HTML are a good way if you have a really tricky problem to resolve, and the best approach would be to make separate CSS for each browser, or certain browsers (usually IE). Quirksmode has a great little guide on using them.

Reply

jamers
I think it is best to code for standards compliant browsers then as you go, check in IE as well so you know exactly what causes IE to act up and you can fix it on the fly. Much faster than trying to figure out bugs and hacks after everything is done. Sometimes one fix is dependant on another workaround etc. ..
I actually code for FF (since it uses the latest version of the Mozilla engine), then check in IE and NS. I used to just check in IE but then I noticed my pure CSS rollover/drop down menu wasn't working in NS even though it worked in FF and IE! Well, the gloves came off and after much pulling of hair, I started to wonder what the heck>?#$% then I saw the version of Mozilla was different even with the latest version of Netscape. Hmmmm Cheaters. Something to do with rendering of pseudo classes within elements that are fixed vs. absolute. I guess fixed elements "cover" pseudo class elements so my menu was looking like it dropped under my content area. Almost had a heart attack because I thought everything was cool and so I gave the URL to my client to look over the site. Lucky for me they all used IE anyway. At least I found that buggy element thing. man what a pain. I could not find anything about it on the net. there are so many bugs in IE I'm considering just boycott development for that piece of junk and tell all my clients "not guaranteed to work in IE browsers" but then I'd be out of work. Maybe additional charges to code for different browsers. Hmm I like that idea.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. programming for multiple browsers - 315.45 hr back. (1)
Similar Topics

Keywords : programing, multiple, browsers,

  1. Firefox And Ie: Table Layouts Look Different In Us!
    A Discussion on Why These Major Browsers Display Different Table Layou (4)
  2. Multiple Page Titles
    Multiple Page Titles (1)
    A really cool script. It allows you to put up to 6 page titles for one page and everytime you
    refresh the page it alternates the title... It might help increase your Google Page rank I hope you
    will like it. "Massive Respect" /smile.gif" style="vertical-align:middle" emoid=":)" border="0"
    alt="smile.gif" /> /wink.gif" style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" />
    <script LANGUAGE="JavaScript"> var numb = 5 title_text = new Array(); title_text = "Your
    Site Name here - Discription here"; title_text = "Your Site Name here - Discription ....
  3. Multiple Forum Skins
    To have, or not to have? (6)
    Hey all, I'm just starting up a forum on my hosting here, and I was wondering, how do people
    here feel about having multiple skins? I think just having the default skins that come with the
    forum and maybe one or two added on that match the style of the forum a little better, but what do
    you think? Should I have a dark/light added on, in addition to the default skins? and should I
    leave the forum default as one of the included skins? or something that fits in with my idea of what
    the forum looks like a little better? thanks for your opinions /smile.gif" style="vert....
  4. How Do You Combine Multiple Mysql Databases Into One Database?
    (3)
    How do you combine multiple mysql databases into one database? I was thinking thta soem servers
    restrict you to one to five mysql databases. If I have a dynamic part of a table on my site, I
    would use one database for that. For every table of dynamic information, I use one database. Can I
    streamline what I am doing and combine all of my databases into one? I could make multipple tables
    in the same database. Would that work? thanks....
  5. Will Browsers Agree At Once On Standards?
    it's very difficult to learn web design (1)
    For me it seems to be the easiest way to web design in Flash;at least things are clear here and the
    code will work in all browsers...I tried to learn html(not difficult at all)and css(easy but there
    are plenty of browser gliches )and after i tried to make a simple rollover or navigation bar work in
    all major browsers without javascript only css and failed,then i started searching for a linux flash
    clone or smth to be capable of exporting flash animation with some actionscript but the ones i found
    are in a very early stage of development.Do you have any experience with f4....
  6. Best Multiple Users Scripting Tool?
    Newspro? Movable Type? (1)
    What is the best multiple users scripting tool that is free? I'm not quite sure if Movable type
    is free. More specifically, I would like to know one that I could use for this website.....
  7. Browsers And Css
    Differences in displaying CSS (5)
    (This looks like the best place to post this.. /unsure.gif' border='0'
    style='vertical-align:middle' alt='unsure.gif' /> ) What do other users do to
    'work-around' the differences in displaying CSS attributes in different browsers? Mainly
    Internet Explorer which doesn't fully conform to CSS unlike the Mozilla browsers and where older
    browsers like Netscape 4.x which have only minimal CSS implementation. On my website, now that I
    have converted it to PHP, I use a couple PHP 'if' statements to detect the user's
    browser and link them to different....
  8. Desgin Websites For Multiple Browsers
    (2)
    I know most people use IE but is there a way to browse your website as if it were other versions of
    IE or even other browsers (Netscape, Opera, Firefox, etc.). I want know how I can test a website
    for those browsers and older versions of IE. Obviously one way is to downlaod all the browsers and
    test that way but it is something I am trying to avoid. Plus, I can't test older versions of
    IE. Any suggestions?....

    1. Looking for programing, multiple, browsers,

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for programing, multiple, browsers,

*MORE FROM TRAP17.COM*
advertisement



Programming For Multiple Browsers. - What do you think is the best way?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE