Slashdot Mirror


Designing Websites - What Browser to Code For?

flyingember asks: "I code up PHP/CSS webpages and recently wondered about who to code for. We know that each browser supports CSS a little bit differently than the others, likening back to the Netscape/Internet Explorer HTML wars. Opera or Mozilla hacks are seen constantly across the net. Looking through two years worth of saved webalizer statistics, 95% of my visits came from IE and the rest from Mozilla, these are the teeming masses of the internet. Even the traffic to my site two years ago resulting from this article sent 50% IE users on Windows XP, and the total was 95% from IE. The numbers have only grown more IE 6-dominant since then. Given the overwhelming Internet Explorer user base, unless your webpage is specifically targeting The *nix or Mac crowd why code for anything except IE 6?" While each browser does support CSS, and even some HTML a bit differently, what functionality seem to be universal across all of the major modern players? Can you design a sharp looking website with such features, without resorting to browser-specific code? If so, how?

182 comments

  1. Umm... by wang33 · · Score: 5, Insightful
    How about designing for the existing standards W3.org is a good place to start.

    Anybrowser.org is another good one if you need convincing.

    Nothing irritates me more than having a webpage not display properly in opera when I have chosen to let opera identify itself as opera, but renders correctly when I tell opera to identify itself as IE6.

    This Quote probably sums it up best

    "Anyone who slaps a 'this page is best viewed with Browser X' label on a Web page appears to be yearning for the bad old days, before the Web, when you had very little chance of reading a document written on another computer, another word processor, or another network."

    -Tim Berners-Lee in Technology Review, July 1996

    wang33
    --
    PAGERANK++ Robsell.com
    1. Re:Umm... by john_is_war · · Score: 2, Insightful

      Whenever I see "This page is best viewed with..." I just think they hired a lazy web designer.

      --
      Live life to the fullest. It's not that life is short, but that you are dead for so long.
    2. Re:Umm... by DingoBueno · · Score: 1

      Yes, code to standards. But just for the record, coding to standards doesn't do anything unless you explicitly tell the browser what standard you using. This means once you choose your standard (HTML 4.01 Transitional, XHTML 1.0 Strict, etc.), make sure that every page sets its DOCTYPE attribute. Not doing so will leave the browser in "quirks" mode, allowing it render however it wants.

      For more infomation, read this. Anything else on the site is also a good read.

      --
      ascii art
  2. Mozilla "hacks"? by adamjaskie · · Score: 5, Insightful

    I do not belive I have seen any of these "Mozilla hacks." Most of the "hacks" I have seen are for things that every browser except IE works properly with, such as the so-called "IE Box Model Hack" that I hear talked about a lot. Can you provide an example of one of these nessicary Mozilla hacks please?

    I have found that as long as you code to standards, and test your page a bit in different browsers, you should be able to code up a page that looks the same, or at least acceptable in all browsers. I suggest coding for Mozilla, as it is more standards compliant, then testing for IE, and applying the (very few) IE hacks that are nessicary to get it to look right. You would be suprised at how similarly they work, unless you are doing some very complex CSS.

    --
    /usr/games/fortune
    1. Re:Mozilla "hacks"? by LordLucless · · Score: 3, Informative

      Can you provide an example of one of these nessicary Mozilla hacks please?

      Try making a file input type for a form, and using CSS to set its width to 100%. It won't size properly under Firebird (I assume FireFox as well; the bug was still open last time I checked). If you want the box to look like it should you have to manually create two seperate controls, a textbox and a button, and use javascript to get the functionality working.

      --
      Just because you're paranoid doesn't mean there isn't an invisible demon about to eat your face
    2. Re:Mozilla "hacks"? by fean · · Score: 1

      lots of things have changed in the newer versions of mozilla, but the older versions (especially ones that coincided with netscape releases) had lots of issues. NN6 included an absolutely horrid html/css engine...

      I use firebird/fox exclusively now, I love them, but mozilla wasn't always so wonderful!

    3. Re:Mozilla "hacks"? by evalhalla · · Score: 1
      but mozilla wasn't always so wonderful!

      As one should expect from any program still marked beta, development, unstable and the like. (NN6 does not count as "stable" because of the high number, as it was called so by marketing, not developers)

    4. Re:Mozilla "hacks"? by Yer+Mom · · Score: 1

      Use the title attribute of an img tag to display a nice long tooltip when the mouse pointer rests on the image. Opera, IE et al will create a multiline tooltip and display the whole text. Mozilla will display about 60 characters and then truncate the rest. This is bug #45375, opened in July 2000. No hurry, guys, nobody uses tooltips, after all. I certainly don't want to try and rewrite half of the TiVoweb modules so they'll work properly with Moz...

      --
      Never mind Spamassassin. When's Spammerassassin coming out?
    5. Re:Mozilla "hacks"? by Plutor · · Score: 1

      That's bug 132565. You'll need to type the bug number in here, since bugzilla blocks direct slashdot links.

      The point to make is that this is a "known bug" and there's at least the intention to fix it (and, like any OSS project, you could fix it yourself and submit it). With IE's flawed box model, or Safari's sketchy table DOM, or Opera's non-existant XMLHttpRequest object, your only option is to wait.

    6. Re:Mozilla "hacks"? by Teddy+Beartuzzi · · Score: 1
      Well, it does say "tooltip", not "toolessay".

      Eschew verbosity.

    7. Re:Mozilla "hacks"? by fean · · Score: 1

      regardless of whether it was stable or not (it wasn't)... netscape still released it, and its still something that designers that are trying to be "nice" to all other browsers have to cater to.. :-(

  3. why code for anything else? by tongue · · Score: 5, Insightful

    As late as what, 1998? a web developer might have asked the same question about Netscape. It had such a large percentage of the market share that it was a pointless crusade to code for anything else.

    Look where it got them.

    There's also somethign about the question that's slightly reminiscent of the Y2K problem--I've said this myself on occasion, and know plenty of others who've echoed the sentiment: "Oh, i'll get around to updating that page long before another browser takes over." Yeah, right.

    Bottom-line: code to the standards. IE 6 is fairly decent about most of them, though not as good as the Lizard, so you're probably safe for the future as well that way.

    1. Re:why code for anything else? by Anonymous Coward · · Score: 0

      I hate to say it, but many academic departments still use *shudder* Netscape 4 *shudder*. Maybe their IT dept is either stingey or has a sense of humor.

    2. Re:why code for anything else? by tongue · · Score: 1

      probably because its predictable, even if it sucks ass. also they're probably using a stock solaris install or something similar which comes with NN4.5.

      You'd be surprised at the number of people who still think NN4.5 is the latest version of "netscape" as well.

  4. Safari by Michael.Forman · · Score: 4, Interesting


    I used to code for Mozilla due to its strong adherence to standards and support for transparency in PNGs. However, now that I've added an Apple G5 to my collection of Linux machines, I find myself developing my website content exclusively for Safari. As long as it works perfectly in Safari, I'm satisfied.

    The sole reason is that Safari's output is immaculate. The output (specifically the fonts) is so perfectly rendered that the HTML almost looks like it is typeset in LaTeX. Thus, to answer your question, I recommend Safari over other browsers for the same reason I recommend LaTeX over word processors. It's one step up.

    Michael.

    --
    Linux : Mac :: VW : Mercedes
    1. Re:Safari by Anonymous Coward · · Score: 1, Informative

      It looks perfect because Safari uses KHTML, Konqueror's rendering engine (apple just 'borrowed' it). The only reason I use any other browser it to make sure my friends, all use IE (with the exception of few that I have gotten to use Mozilla).

      Also gotta love that spell check built into forms :-)

    2. Re:Safari by fean · · Score: 2

      yeah, good idea... design for a browser that has some of the smallest market share... if it doesn't render right, it's the user's fault for not having the right browser... it renders prettiest in this browser, so use it!!!

      guhhh... I get so tired of mac fanboys
      (go ahead, what type of fanboy am I? ha... can't tell, can you?)

  5. PHP is a server side technology, remember? by kalidasa · · Score: 5, Insightful

    PHP is a server side technology; it doesn't matter WHICH browser you code to, because the PHP doesn't care. CSS, ok, CSS is different: but here's the problem with coding to IE6's CSS model: you don't know how it's going to change in the future. You have no idea how Microsoft is going to change its support of the CSS features whose behavior is peculiar in IE6. With W3C standards, at least you have a target that stays (relatively) still - the other browsers at least are all going to keep backward compatibility to the W3C recs.

    Unless you're doing a lot of weird CSS hacking, making a standards-based page look good in IE6 is a lot easier than making an IE6 page work in Safari or Mozilla.

    Now, if you said JAVASCRIPT, well, that would make more sense; the object models are significantly different between IE6 and Mozilla and Safari and Opera. There the smart thing is to write separate pages for both browsers and use those PHP programmer skills to serve up the right page for each.

    1. Re:PHP is a server side technology, remember? by BladeMelbourne · · Score: 3, Insightful
      There the smart thing is to write separate pages for both browsers and use those PHP programmer skills to serve up the right page for each.
      This is NOT a smart thing to do. You will have 4 times as many files to create/maintain (for Mozilla, Safari, Opera, MSIE). The smart thing to do is have one page with a couple of condition statements to deal with any quirks.
    2. Re:PHP is a server side technology, remember? by Anonymous Coward · · Score: 0

      The smartest approach is to avoid any conditional stuff wherever possible. If you vary based upon the user-agent header, your content becomes far less cacheable, and also unreliable, as the user-agent header is often inaccurate or not available.

    3. Re:PHP is a server side technology, remember? by Anonymous Coward · · Score: 0

      Cacheable by what? A proxy server? Environments with proxy servers are far more likely to use one browser - thus the cache would not be a problem.

      And most of the conditional 'stuff' would be in JavaScript files. Conditional PHP/ASP is very rarely needed when developing content to W3C standards - that works correctly in Mozilla and MSIE. A web developer who knows what they are doing does not have these issues very often.

    4. Re:PHP is a server side technology, remember? by Anonymous Coward · · Score: 0

      Environments with proxy servers are far more likely to use one browser

      Are you kidding? It's been standard practice for ISPs to automatically configure customers' machines to use a caching proxy since I first started using the web in about '96 or so. Over the past couple of years, the use of interception proxies has risen dramatically.

      The average Internet user uses a proxy, whether they know it or not. Most pageviews for an average website will usually pass through at least one caching proxy.

      And most of the conditional 'stuff' would be in JavaScript files.

      Client-side scripting is inherently unreliable.

      Conditional PHP/ASP is very rarely needed when developing content to W3C standards - that works correctly in Mozilla and MSIE.

      That was my whole point.

  6. getting real by Tumbleweed · · Score: 4, Insightful

    Okay, here's what you should do, IMO. Design for HTML 4.01 transitional. Or XHTML 1.0 Transitional. Use tables for layouts, and CSS for font specifications and a _few_ other things that are all commonly supported, _exactly the same_, on all major browsers. This is called "lowest common denominator." Don't use _anything_ that's not standard, mind you, but use that which is _correctly implemented_ from within the standards, and you'll be alright. When XHTML came out, browsers didn't stop supporting the older standards - they still work, and honestly, they work more reliably across the modern browsers than ANY of the newer standards. That's just the way it is until MS decides to actually FIX their LAME-ASS browser.

    Is it your job to push people into installing a decent browser? No.
    Would it work, even if you tried? Hell no!
    Is developing _ONLY_ for the latest standards going to magically make everyone who comes to your site, or even a reasonable percentage, _want_ to upgrade? Another hell no.

    You need to get real - the MS IE browser dominance is going to stick around a while (another few years, most likely), and by that time, hopefully Longhorn will be here, and will bring with it a browser that supports standards. One can only hope.

    So there ya go!

    Oh, another option: develop the whole site in Flash - pixel perfect on every browser that supports Flash! :)

    1. Re:getting real by simon13 · · Score: 2, Interesting

      Oh, another option: develop the whole site in Flash - pixel perfect on every browser that supports Flash! :)

      Except for when you realise that some browsers allow transparent Flash backgrounds and others don't... And you have to mix object and embed tags to get Flash to display... And you need to watch out for different versions of the Flash player, often needing Javascript to do Flash detection.

      But yes, at least most movies *will* look the same across multiple browsers and platforms.

      Simon.

    2. Re:getting real by Tumbleweed · · Score: 1

      So don't try for a transparent background in Flash, go ahead and mix object & embed tags, and use JavaScript for flash detection.

      These problems are about a zillion times easier to work around than trying to code extensive css & javascript issues across browsers.

    3. Re:getting real by sabNetwork · · Score: 4, Informative

      You're obviously not a web designer. Flash is a poor substitute for displaying content and a great method for displaying animations. Here's why:

      1.) You can't print Flash.
      Printing is mucho mucho mucho important, especially in the corporate world. How is someone going to put your product information on file if they can't save your website?
      2.) You can't (usually) copy text from Flash.
      Quoting is as important on the web as it is with printed text, with one important exception: no one will bother quoting you unless you can copy your text. Web users are laaazy.
      3.) Google can't see Flash.
      You want to market your website, right? A large portion of your traffic is going to come from search engines. If search engines can't read anything but a bunch of META keywords and a title, then your page isn't going to be very high on the list.
      4.) People can't link to subpages in Flash.
      How often do you see someone linking you to NYtimes.com when they are pointing you to a specific story? Well, okay, except for slashdot :-). It's possible to do branch pages in Flash, but it's a waste of bandwidth and slow.
      5.) People don't care about your Flash intros.
      Most Flash pages are coupled with flashy animations that prelude the actual content. Who cares to sit and watch all this crap when you're looking for one specific piece of information? Even if you can skip the long intro, you still have to deal with the transitions.

      The list could go on. Flash was never intended to be used for content sites, and is NOT a substitute for HTML/XHTML and CSS/JS.
      --

    4. Re:getting real by jdkincad · · Score: 2, Informative

      Oh, another option: develop the whole site in Flash - pixel perfect on every browser that supports Flash! :)

      Yeah, the visually impaired probably didn't want to be able to use your site anyway.

      --
      The great advantage of having a reputation for being stupid: People are less suspicious of you.
    5. Re:getting real by sabNetwork · · Score: 1

      Exactly. Although slice-and-dice table layouts are shunned by the XHTML elitists such as Zeldman, they are still the best way to go for many small sites.

      So, HTML for layout (tables and images), and CSS for fonts and type positioning. Most browsers will get it right. If you want a good WYSIWYG tool, check out Adobe GoLive. It's table layout engine makes it easy to generate flawless code that works in every browser.
      --

    6. Re:getting real by Tumbleweed · · Score: 1

      You obviously missed my smiley face at the end of that sentence.

    7. Re:getting real by drsmithy · · Score: 1
      Oh, another option: develop the whole site in Flash - pixel perfect on every browser that supports Flash! :)

      Yes, you too can have a website rendered unreadable to anyone not running the same screen resolution as you !

    8. Re:getting real by jpkunst · · Score: 4, Informative
      XHTML elitists such as Zeldman

      Zeldman is certainly not a table-shunning XHTML-elitist. He is very pragmatic in that regard and, for now, recommends a 'transitional' technique with light use of tables for page layouts for cross-browser compatibility.

      See his excellent book Designig with web standards.

      JP

    9. Re:getting real by Anonymous Coward · · Score: 0

      WTF are blind people doing on a primarily visual medium and why should i waste my time and the company's money catering to them?
      Learn to love yourself and live with the way you were born and stop trying to be like everybody else.
      Here's a free hint: YOU'RE NOT!
      FWIW I am genetically prone to obesity, but I dont go around whining that chairs are too small or mainstream clothes dont fit me.

    10. Re:getting real by fean · · Score: 2, Insightful

      wow... hmm... the grand-grand-parent poster was obviously sarcasic, but seriously... lets take apart your arguements one by one...

      1) yes, you CAN print flash... in fact, flash allows for you to design a seperate page specifically for when people print... thus you can even precisely control how things print..

      2) not being able to copy from flash is a fault of the designers, not flash... there's one little button designers have to check to make their text editable...

      3) anyone designing the page in only flash is lazy

      4) flash can be set up to read paramaters at the end of the page, from javascript, JUST LIKE CGI AT NYTIMES, hence a simple piece of code that passes parameters to the flash, and a gotoAndPlay(x); at the beginning of the flash movie solves this

      5) where did this come from? I agree with the intros part, but if I design a flash interface that can pull information and display it in itself without reloading the page, that means no waiting for ANY excess code, only content, plus the page doesn't blink to another page... what could be better for the user experience?

      come up with as many other reasons as you want, I'll counter each and every one of them

      for the record, I'm not suggesting that it REPLACE anything, but it is definately more than enough of a substitute when in the hands of a competant programmer...

    11. Re:getting real by Anonymous Coward · · Score: 1, Informative

      3). Your HTML can have meta tags so that google can rank it.

    12. Re:getting real by NotInTheBox · · Score: 3, Insightful

      Getting really real: there is NOTHING at all visual about bits and bytes.

      That is basically the whole point of the web: The user can choose her own browser and it renders it to fit the platform and ability of the user, because no designer knows these things.

      Unless you can understand the abstract DOM tree which is the real representation of html you are very much disabled and need a renderer/compiler which transforms it in to a presentation which you can enjoy. Some like the visual, alpha-blending, anti-aliased tabloid-style view, some like text-only, some like auditory... get used to it that not everyone is the same!

      To a computer we are all disabled.

      --
      What I cannot create, I do not understand
    13. Re:getting real by zcat_NZ · · Score: 0, Redundant

      "pixel perfect" sure;

      What resolution do you design for? a flash site designed for 800x600 or even 1024x768 is going to be a squinty, unreadable postage stamp in the middle of the browser window at 1600x1200.

      well, perhaps not that bad.. but a well-designed site using XHTML and CSS should look about the same at 1600x1200 as it does at 600x800, except with nicer edges on the text.

      --
      455fe10422ca29c4933f95052b792ab2
    14. Re:getting real by JohnFluxx · · Score: 1

      Your last point sums it up - "when in the hands of a competant programmer". I think that explains why flash has such a bad rap.
      I personally won't use a flash website because it's so rare that it is done right.

    15. Re:getting real by BoomerSooner · · Score: 1

      It's vector based so it scales perfectly, fonts and all. All you have to do is plan for some dipshit running 640x480.

    16. Re:getting real by Anonymous Coward · · Score: 0

      All the points that sabNetwork just made are right on target. All-Flash sites take an excessive time to load, people will get tired of waiting and move on.

      Stick to the standards, and avoid any browser specific "enhancements" if at all possible.

      Test on multiple browsers. The pages should look reasonable on the common ones (not just the most recent versions)

      Test for bandwidth issues. If it takes too long to load, people will go somewhere else. Remember that there are a lot of people out there still stuck on dialup. This probably won't be too much of an issue unless you make excessive use of graphics or Flash.

    17. Re:getting real by Anonymous Coward · · Score: 0

      come up with as many other reasons as you want, I'll counter each and every one of them

      Okay.

      Flash fucks up my user interface in various ways: Middle-click doesn't open in a new window. Shift-middle-click doesn't open in a new tab. Right click doesn't bring up a proper menu with all my usual options, like "Bookmark this page". Until recently, the Flash plugin would freeze my browser if I was playing music at the same time. It doesn't use normal sized text, although that's nothing exclusive to Flash, but as far as I know it's impossible to get normal size text, and Flash doesn't increase the size of the font when you use your normal browser controls.

      That's off the top of my head, I'll post more if you manage to refute all them (I doubt you can).

    18. Re:getting real by Anonymous Coward · · Score: 0

      Google doesn't pay attention to keywords, it never has, and it's not been an effective SEO technique for many years, since it's just to prone to abuse. Virtually no search engines pay attention to them.

    19. Re:getting real by Anonymous Coward · · Score: 0

      Except that I have never - NEVER - seen a Flash page that *does* scale. All the ones I've ever seen have been planned only for "dipshits" running 640x480, and on my 1280x1024 display - rather modest for a modern system - what I get is a postage stamp to squint at.

      Sure, Flash probably scales perfectly if the people who use it know how to make it do that, but the evidence is overwhelming that they don't.

    20. Re:getting real by drsmithy · · Score: 1
      It's vector based so it scales perfectly, fonts and all. All you have to do is plan for some dipshit running 640x480.

      Then why doesn't anyone write their Flash web pages using this technology ?

    21. Re:getting real by sabNetwork · · Score: 1

      I was a little hard on him. I actually own his book and enjoy it (despite the fact that it doesn't have enough practical advice), but disagree with his recommendations.

    22. Re:getting real by Tet · · Score: 1
      if I design a flash interface that can pull information and display it in itself without reloading the page, that means no waiting for ANY excess code, only content, plus the page doesn't blink to another page... what could be better for the user experience?

      How about the ability to use my normal keyboard navigation shortcuts without flash intercepting them and generally pissing me off? How about being able to use the forward/back buttons as I can with any other page on the web? How about being able to resize the text that the designer has decided should be in 2.5pt text for no apparently good reason, which may look fine on a 1024x768 screen, but is barely readable on my 1920x1440 screen? How about being able to get at information when I'm on the move and browsing with my Zaurus through my mobile phone? Flash may not be entirely useless, but it certainly has no place on the web...

      --
      "The invisible and the non-existent look very much alike." -- Delos B. McKown
    23. Re:getting real by BoomerSooner · · Score: 1

      My company does internal interfaces in flash to allow total control over the environment our users work in. We plan for 800x600, 1024x768, 1280x960, 1280x1024, and 1600x1200 (or at least those are the resolutions that have to show well by spec, if someone decides to run 1152x864 or whatever it is we just don't test every single page).

      It's not rocket science. You just need a good Flash developer that thinks Globally instead of only focusing on his desktop (or grandma's).

  7. mezzoblue has good advice by GeorgeH · · Score: 5, Interesting
    From mezzoblue's css crib sheet: Build and test your CSS in the most advanced browser available before testing in others, not after. If you build a site testing in a broken browser, your code begins relying on the broken rendering of that browser. When it comes time to test in a more standards-compliant browser, you will be frustrated when that browser renders it improperly. Instead, start from perfection and then hack for the less able browsers. Your code will be more standards-compliant from the start, and you won't have to hack as much to support other browsers. Today, this means Mozilla, Safari, or Opera.

    The fact of the matter is that you will need to do browser workarounds, even if you only design for IE. The IE 5 box model is wrong and there are a lot of people using that browser. So just get the standard right and then go back and compensate for broken browsers.

    And yes, I know that I'm not stnading on very solid ground with the way SongBuddy looks in IE. I'm more interested in getting the features going than in supporting a browser I haven't used in quite some time.

    --
    Why can't I moderate something "Wrong" or at least "Grossly Misinformed"?
    1. Re:mezzoblue has good advice by simon13 · · Score: 1

      Yeah, that's good advice! Mod parent up.

      As I just posted, I design in Opera and then perform fixes for IE. Mozilla usually renders very close to Opera.

    2. Re:mezzoblue has good advice by jgardn · · Score: 1

      Hear, hear.

      Recently, the internal web application I built I built exclusively for Mozilla, then I tweaked the CSS and some tables and some images to make it work in both Mozilla and IE. The end result is clean and flawless, using mostly divs and tables only for tabular data. (Hint: "float: right" does wonders! But both browsers have problems if it's taller than the content that is to the left.)

      --
      The radical sect of Islam would either see you dead or "reverted" to Islam.
  8. Really simple by Anonymous Coward · · Score: 0

    Code for Mozilla/Firefox, fix for Opera and IE (more so for IE). The Gecko engine is the most standards compliant, and also regularly the strictest. If you design for it first, you know it'll likely work in other browsers. When it doesn't, then you make work around bugs in the other browsers.

  9. Design for Opera by simon13 · · Score: 1

    I design for Opera (just cos that's what I use and it's pretty standards compliant) and then perform any necessary fixes to get IE to work, which isn't usually too much hard work. It usually looks fine in Mozilla as is.

    But yeah I agree about the whole frustration of the thing. Darn IE's box model and font sizes...

    1. Re:Design for Opera by Anonymous Coward · · Score: 0

      also darn that IE 6 service pack 1 is their last browser :-)

      oh wait that means everyone will still be using the world's crappiest browser ever for eternity (well till linux slaughters microsoft in the desktop environment, so if your willing to wait a little time you can just code to the standards, and not have to worry!)

  10. Use Valid HTML by a.koepke · · Score: 3, Insightful

    If you want to make sure your page looks the same in each browser use valid HTML. It is when you start doing things that are not valid and incorrectly nesting tags that things go wrong.

    Decide which standard to code your page in (HTML 4.01 Transitional or XHTML 1.0 Transitional are good), put the right doctype on the page and then code according to the standard. Check your page using the W3C validator and fix any errors. Check your CSS document for errors too.

    I do not use CSS for layouts since they never render the same in each browser, I still use tables. Just us CSS for fonts, sizes and general formatting that is accepted by all browsers.

    --


    (\(\
    (^.^)
    (")")
    *This is the cute bunny virus, please copy this into your sig so it can spread
    1. Re:Use Valid HTML by Anonymous Coward · · Score: 0

      I only use XHTML 1.0 Transitional, I put the doc type, and use the W3C validator and fixed every error, yet IE 6 still doesn't render my site (if I break the standards, it will work, though I kind of like having the little icon in the bottom...)

    2. Re:Use Valid HTML by Anonymous Coward · · Score: 0

      If you want to make sure your page looks the same in each browser

      ...then forget it. It wasn't a design goal of HTML, XHTML or CSS, never was, never will be. It's not even desirable - a person with poor eyesight might want larger fonts, a person with limited bandwidth might switch off images, and who cares what it looks like to the Googlebot?

    3. Re:Use Valid HTML by normal_guy · · Score: 1

      You can always design separate stylesheets for each browser. I use one for IE, and a second for everyone else - since most everyone else is on the ball.

      --

      Linux: Free if your time is worthless.
  11. Half right... by WIAKywbfatw · · Score: 5, Insightful

    Code to standards but make sure that your code is happily displayed without any quirks in a range of browsers and on a range of platforms.

    Browsers you should be worried about (in no particular order, so don't start flaming me about ranking): MSIE, Opera, Mozilla, Netscape Navigator, Safari.

    Platforms you should be worried about: Windows, Linux, Mac.

    Of course, if you're intending your content to be viewed on the move, make sure you've got WAP/portable browser friendly pages too. Oh, and remember resolution: you might have a 1600 by 1200 desktop but the average web user doesn't. 800 by 600 is as high as you should design unless you want to alienate the majority of surfers.

    If the various combination of browsers and platforms scares you, don't worry. There are various apps out there (and websites) that will show you what your pages will look like in several browser/platform configurations. Someone more immediately familiar with them them than I am will surely (hint, hint) provide you with some useful URLs.

    --

    "Accept that some days you are the pigeon, and some days you are the statue." - David Brent, Wernham Hogg
    1. Re:Half right... by Anonymous Coward · · Score: 3, Insightful
      800 by 600 is as high as you should design unless you want to alienate the majority of surfers.

      Similarly, don't code your web page using stuff like fixed widths so that it only looks good at 800x600. Nothing irritates me more than loading up a page and seeing a vast expanse of white or gray and a tiny, five-words-wide column of text because the designer assumed everyone uses 800x600 or less. It's perfectly possible to make a page look good at low and high resolutions.

    2. Re:Half right... by Peter+Trepan · · Score: 1

      There are various apps out there (and websites) that will show you what your pages will look like in several browser/platform configurations. Someone more immediately familiar with them them than I am will surely (hint, hint) provide you with some useful URLs.

      Anyone? Anyone? Bueller? Bueller?

      --

      Step into a huge movement. Don't Tread In Me.

    3. Re:Half right... by i.r.id10t · · Score: 1

      browsersizer - http://www.applythis.com/browsersizer/

      Dreamweaver also has some guides built in.

      Or you can just change your resolution for a few minutes to check, or maybe get a old boat anchor POS PC to use to check low end stuff or other browsers.

      --
      Don't blame me, I voted for Kodos
    4. Re:Half right... by andybak · · Score: 1, Insightful

      Except... A column of text that is spread out to 1600 wide can be very hard to read. Do you read Slashdot with your browser fullscreen when you are working at those kind of resolutions? I would prefer whitespace to overly long lines of text any day.

    5. Re:Half right... by Kethinov · · Score: 3, Interesting

      I've found that most people running 1280x1024 or higher almost never maximize any window whether they use windows, linux, or osx. On the flip side, people running 1024x768 or lower almost always maximize their current window because screen space is at a premium on those low-end resolutions. I never believed in this phenomina until it started happening to me. Every day at work I'm stuck with 1024x768 and I maximize my windows on both my Linux and Windows work computers. But at home, I never maximize anything because I run 1280x1024.

      --
      You're right, I wouldn't steal a car. But if it were possible, I sure as hell would download one!
    6. Re:Half right... by drakaan · · Score: 2, Interesting

      Actually, I prefer to browse at higher resolutions with the browser maximized...lets me read more before I have to scroll. I could care less how many lines the text is spread over. I would prefer more information onscreen to whitespace any day.

      --
      "Murphy was an optimist" - O'Toole's commentary on Murphy's Law
    7. Re:Half right... by GeckoX · · Score: 1

      Um, yes, but that is your choice...would you prefer not to have the choice?

      --
      No Comment.
    8. Re:Half right... by pipingguy · · Score: 1

      Someone more immediately familiar with them them than I am will surely (hint, hint) provide you with some useful URLs.

      Browser Cam is one. US$39/month for unlimited use or US$10/hr.

  12. Keep it simple by k4_pacific · · Score: 3, Informative

    I would suggest designing for the minimum browser, as many people may be connecting using modems, carrier pigeons, or other low bandwidth connections. The FSF homepage is a good example.

    --
    Unknown host pong.
    1. Re:Keep it simple by anno1a · · Score: 1

      Designing for the minimum browser certainly isn't the same as designing for the minimum bandwidth! In fact some of the new standards are able to minimize the bandwidth consumption, while they require more from the browser. From that point of view it's hard to fill both requirements, don't you think?

      --
      ------- I fumbled my registration and I now must suffer
  13. Some recommendations by Alpha27 · · Score: 3, Informative

    Code to the standards, but also look at your target audience and the nature of the site....

    If you are coding for general site that will attract all kinds of people, code for software that will be up to 12-18 months old. The reason is that it takes a majority of users to catch up to the latest versions and 18 months is the usual timeframe it takes for users. Can you use just CSS for all things, no. CSS-P (for positioning) still isn't exact on all browsers who can do it, so you do run into a few issues here, so a few tables might be necessary to get the desired affect. Should you compensate for all users? That depends on who the site is for. If it's public access/govt site then more acceptance is needed, if it's just a particular niche, then you can get away with being more selective.

    If you are coding for an intranet, the answer might be easier to find. Large companies usually set a browser standard so you can code for a particular browser, if you absolutely need to. So for example, if a company standardizes on IE 6, then you can take advantage of all the particulars of that browser.

    Now, to put it into more perspective, what's the percentage of users who might be in the odd-ball category... about 5%. Should you care about supporting them, depends on your willingness and cost of doing so.

  14. simple by n.o.d.y.n.e · · Score: 2, Insightful

    ever thought about about designing to them all? No brainer really.

    --
    Failure is simply the opportunity to begin again, this time more intelligently. - Henry Ford
    1. Re:simple by Anonymous Coward · · Score: 0

      that advice doesn't work for lazy people... having to designer the entire site twice! (once for the standards complient browsers like Konqueror and Mozilla, and then another for IE)

    2. Re:simple by n.o.d.y.n.e · · Score: 1

      If the script kiddies werent so masturbatingly loving of stupid web tricks and totally ignorant of w3c standards, then a single implementation of a cross-browser design would be no problemo.

      --
      Failure is simply the opportunity to begin again, this time more intelligently. - Henry Ford
  15. Ack! Work to standards, not browsers by legLess · · Score: 5, Informative
    Why code for anything other than IE6? Because you care about the future. From now until the end of time, users accessing your web site from standard desktop machines will be a smaller and smaller part of your audience. What if you make an IE-only design and want to retool later for PDAs? If you've done it the right way your life will be easier.

    If you write to IE6 then your markup will be hosed as soon as Microsoft updates. They have a history of changing rendering even in minor updates, and IE7 will certainly be different. Want to retool your entire site when IE7 comes out? Do you really want to play whack-a-mole with Microsoft?

    What if you do ever want to make a site that's aimed at Mac or *nix users? You'll be screwed since you only know how to write for IE. If you write to standards, you have a known good base knowledge.

    Here's another reason: writing to the standards is easier. They're published, and several good validators exist. You'll need to do very little to get a standards-compliant site to do what you want in IE. Also, any in-depth CSS design help you're likely to find online is targeted to the standards, not how they're broken by $proprietary_corp.

    In practice, here's my advice:
    • Make your markup as clean and semantic as possible. Avoid all presentation (font tags and the like); put distinct sections in div tags with ids; use the markup the way it was designed.
    • Do a first style pass in your browser of choice. I use Safari. It's not the most standards-compliant, but it's easy for me to use. Every browser has quirks, but that's the next step.
    • Preview in Mozilla, Opera, IE, Safari and Konqueror. Most of these can be had for any platform. IE is hard on Mac, but I use Virtual PC. Safari is hard if you're on Windows, but you can use Konqeror, which is similar.
    Ignore Netscape 4 entirely. It's a broken piece of shit, always has been, and getting something to look good in it is a total waste of time. By ignore it I mean import your styles:
    @import "style.css";
    If you're desperate, make a simple style sheet using no tricks or positioning and link that, then have your fancier imported style sheet override it.

    Visit CSS Zen Garden for inspiration; ALA and the WASP for information.

    Use the standards. It's better for you in the future, more flexible, better for your users, and just plain easier.
    --
    This isn't as much "normalization" as it is "don't take so many drugs when you're designing tables."
  16. Re:Ack! Work to standards, not browsers by legLess · · Score: 2, Informative

    Blast it. I meant to unfuck those angle brackets. Here's what I meant:

    <style type="text/css" media="all">@import "res/css/base.css";</style>

    --
    This isn't as much "normalization" as it is "don't take so many drugs when you're designing tables."
  17. The best 3-4% by Anonymous Coward · · Score: 0

    Why target Mac users?

    "We've got...this loyal, passionate following, and one of our strongest weapons as a company is that passionate customer base," says Phil Schiller.(30) Many software developers agree,(31) recognizing the Mac market as both more loyal and more influential than most people realize. Targeting the Mac audience means reaching a group whose members have been online longer, are more educated, more creative, and purchase more than the average web surfer.

    Almost 11 million of the users logging onto the Web are using a Macintosh to do it (8.2% of the total U.S. online population) according to a Nielson//Net Ratings report.(32) And those users stand out for other reasons: 70.2% of Mac users online have a college or postgraduate degree (compared to 54.2% of the general online population). This higher level of education correlates to higher household income levels. In addition, Mac users have the highest level of broadband access of all major computer brands.

    These Mac consumers are also more sophisticated computer users: they are 58% more likely to build web pages and 53% more likely to read product reviews, according to the same report. More Mac users access the Internet daily, and Mac users have a higher chance of making an online purchase--and these purchases are more likely to be computer hardware, software, or music.

    ...

    (30) Steve Gillmor, Apple On the Move, http://www.infoworld.com/articles/hn/xml/02/10/18/ 021018hnapple.xml, October 2002
    (31) More Than 5,000 Products Available for Mac OS X, http://www.apple.com/macosx/applications/
    (32) Jarvis Mak, Profiling the Mac User Online, Nielsen/NetRatings, 1 July 2002.

    (But as you can see, Mac users are also more likely to post as AC.)

    1. Re:The best 3-4% by Anonymous Coward · · Score: 0

      I just realized this post probably came off as a troll, but I actually meant it as a response to the question "...unless your webpage is specifically targeting The *nix or Mac crowd why code for anything except IE 6?"

    2. Re:The best 3-4% by Anonymous Coward · · Score: 0

      How many mac users do you (i mean all the /. community) know that actually even come near hardware unless its in a shiny plastic case?

  18. Simple, isnt' it? by emmetropia · · Score: 2, Informative

    If you're using PHP, the issue can be easily solved. I started doing this lately with some of my own work. I design a site, write all the CSS for Mozilla/Netscape, and make sure it all works. Then I make clone of the stylesheet, and customize it to Internet Explorer 5.0 or 5.5. After I have both, sometimes there's another one for Opera and Safari, if you're feelin craaaazy, I write a simple script to parse what browser they're using from the HTTP_USER_AGENT and import the correct stylesheet. It eliminates javascript, and document just the slightest bit smaller (What's 1k difference you might ask? What if your're server a million pages a month?) I haven't run into any problems with it, the pages looks the same for everyone, and it takes an extra 10 minutes work on my part. Oh, and as far as what to code for? Personally, I code XHTML 1.0 Transitional, and CSS 1, because 2 isn't so popular with the older crowd of browsers.

    1. Re:Simple, isnt' it? by Anonymous Coward · · Score: 0

      I write a simple script to parse what browser they're using from the HTTP_USER_AGENT and import the correct stylesheet.

      Except that if they're one of the many users who have set their browser to claim to be IE, to get past idiots who use user agent checks to block non-IE browsers, then they'll get the wrong stylesheet.

      User agent checks are hideously unreliable. You should never use them.

    2. Re:Simple, isnt' it? by emmetropia · · Score: 1

      I really don't see a problem with checking the user agent. Especially when the bulk of changes made from one style sheet to the other is something as small as say "padding". And to say it's not reliable, I would really have to disagree. But, that's only my $2 * 10^(-2)

  19. Mozilla has the tools to help create good pages by n-baxley · · Score: 2

    I develope all my pages in Mozilla first, one because that's the browser I use all day, two because it has the best css support. Third is beacuse it comes with tools that allow me to diagnose a page much better than anything from MS. The DOM inspector, JavaScript Console, and the JavaScript Debugger are indispensible when building any kind of DHTML site that relies on CSS for display. After I bulid the site in Mozilla I make some corrections for IE and that's pretty much it. I don't bother with testing on Opera or Safari because it's just not worth the time for the few people that come to my site and use those browsers. So, that's my $.02 with about 10 years of development and real-world experience.

    1. Re:Mozilla has the tools to help create good pages by chris_mahan · · Score: 2, Interesting

      I concur on that.

      moz first, then tweak for IE 6.
      That way, one html base, on css.

      By the way, I do xhtml 1.1 strict, no tables.

      Arguably the sites aren't eye candy, but google, linx and modem users love them. Plus, everyone in the corporate world has a modern browser, and that's my target audience.

      Also, use templating with asp or php. It saves a bunch of time.

      --

      "Piter, too, is dead."

    2. Re:Mozilla has the tools to help create good pages by tjgoodwin · · Score: 3, Interesting
      By the way, I do xhtml 1.1 strict, no tables.

      Then either you're serving your pages with the wrong MIME type, or they can't be seen in IE at all.

      You're not supposed to serve XHTML 1.1 as text/html: you should use application/xhtml+xml. See the W3C's XHTML Media Types. If you're labelling your XHTML 1.1 as text/html, then your browser isn't treating it as XML (note that Mozilla is using Quirks mode, for instance).

      Snag is, Internet Exploder (to IE6SP1) doesn't know what to do with application/xhtml+xml, even though there's been a built-in XML parser since IE5, and application/xhtml+xml was defined in RFC 3236 over 2 years ago (and was presumably floating around the standards track for some months before that). But don't worry: just remember that Internet Explorer 6 SP1 gives you the freedom to experience the best of the Internet. At least, that's what it says on the box.

      Assuming you're not prepared to be held hostage to the Great Beast, the best workaround at the moment seems to be to use Apache's content negotiation (MultiViews) to lie to IE (and anything else that doesn't know about application/xhtml+xml) that you're giving it text/html.

      There's more on this here and here.

    3. Re:Mozilla has the tools to help create good pages by Anonymous Coward · · Score: 0

      Third is beacuse it comes with tools that allow me to diagnose a page much better than anything from MS. The DOM inspector, JavaScript Console, and the JavaScript Debugger are indispensible when building any kind of DHTML site that relies on CSS for display.

      Not to mention EditCSS, the dynamic CSS editor, which is quite possibly the most useful extension ever written. I'd provide a link but I can't get through to any of the extension sites at the moment.

    4. Re:Mozilla has the tools to help create good pages by chris_mahan · · Score: 1

      I appreciate your taking the time to point out the thing about the mime type.

      However, since it is a hosted site, how can I control the mime type except by changing the extension? For example, I use .html, and all is well.
      If I use .xml, then IE goes bezerk, whereas moz does fine.

      Oh well, more fine tuning ont he way.

      Thanks for the two referenced sites, i'll check them out.

      --

      "Piter, too, is dead."

  20. Two words: Browser Detection by E_elven · · Score: 0

    That way you can pop up a ECMAScript alert:

    "Your browser does not fully support the current web page standards (links here) and it may cause trouble on this or any other website. You can obtain one of the following browsers to fully enjoy pages everywhere, or continue with your current one (more links here). Thank you."

    Make sure to pop it up on the main page only, and preferrably track it with a cookie. No-one wants to see it every time.

    --
    Marxist evolution is just N generations away!
    1. Re:Two words: Browser Detection by Nos. · · Score: 3, Insightful

      And if a site does this, I'll hit the back button, go back to my search results and move on to the next page. Its not that difficult to code for various browsers AND stick to the standards, without detecting which browser everyone is using.

  21. You've got it a bit backwards... by pompousjerk · · Score: 1

    Build and test your CSS in the most advanced browser available before testing in others, not after. If you build a site testing in a broken browser, your code begins relying on the broken rendering of that browser. When it comes time to test in a more standards-compliant browser, you will be frustrated when that browser renders it improperly. Instead, start from perfection and then hack for the less able browsers. Your code will be more standards-compliant from the start, and you won't have to hack as much to support other browsers. Today, this means Mozilla, Safari, or Opera.

    (From the CSS Crib Sheet)

    You see, if you design for IE flaws and the market shifts, you'll have designed yourself into a corner.

    You're also hindering the adoption of alternative browsers because "it only works in IE."

    Also, IE-only sites tend to be inaccessible, and inaccessible sites may have nasty consequences, like ADA lawsuits.

    It takes only marginally more effort to create a cross platform site.

    Designing with Web Standards is an excellent book on cross platform design.

    And for those not convinced of CSS's inherent flexibility, there's the CSS Zen Garden. Cross platform, any browser. (Yes, even Lynx.)

  22. standards not browsers. by nazh · · Score: 5, Informative

    Code after the standards not browsers, try to make the code as semantic as and always use a proper doctype, i usually recommend a sctrict-dtd.

    but when choosing a doctype, you choose you should choose one that triggers the standard compliance rendering mode in the diffrent browsers. see here for a list http://www.hut.fi/~hsivonen/doctype.html

    Quirksmode.org is a nice place to check out which javascript and css properties that is supported in the diffrent browsers. this css overview has been very helpfull http://www.quirksmode.org/css/contents.html

    1. Re:standards not browsers. by nazh · · Score: 1

      apart from spellchecking i forgot to paste this link Welcome to The HTML Hell Page.
      for what you should not do ;)

    2. Re:standards not browsers. by Anonymous Coward · · Score: 0

      Agreed. Problems would be solved if everyone coded for HTML 3.0 specs.

  23. Standards, plus an additional comment about "95%" by Anonymous Coward · · Score: 3, Insightful

    Several people here have already said "code to standards, not to a specific browser," a comment with which I agree completely.

    But I also want to add this. Many people with whom I've had this conversation reply with "yeah, but I like the MS-specific extensions; and given that IE users comprise 95% of the visitors to the site I'm working on, why not use them?" This response has always amazed me, and I wonder if it works with the executives at the firms for whom they design sites: "We're gonna deny access to 5% of your potential customers, and thus cut your web-generated revenues by 5%; but your site will have this cool funky-looking formatting! OK?" More likely, they don't tell the web design customer that they're throwing away 5% of their revenues.

    For lots of companies, 5% of revenues is the difference between profitable and not.

  24. Code for IE and Mozilla, easy. by Kris_J · · Score: 1

    I'm part of a team of people coding a corporate website. I use Mozilla, everyone else uses IE. As a consequence our site works very well in both browsers. Simple.

    1. Re:Code for IE and Mozilla, easy. by Jellybob · · Score: 1

      And it's oh so fun as well... I did that on the last site I worked on, and got sick of tweaking designs instead of writing code.

      This time round the coding standards include designing for Mozilla, and then adding any hacks needed to get things right in IE once we're done doing that.

    2. Re:Code for IE and Mozilla, easy. by Kris_J · · Score: 1
      This time round the coding standards include designing for Mozilla, and then adding any hacks needed to get things right in IE once we're done doing that.
      That's how I do my pages. Fortunately I've vetoed any browser-detection code, so everything's fairly standard -- just every so often the other coders make a mistake that IE fixes and Mozilla doesn't.
    3. Re:Code for IE and Mozilla, easy. by Jellybob · · Score: 1
      Fortunately I've vetoed any browser-detection code

      Good call :P

      I regularly threaten my designers (ok... the designers, but I think of them as mine, since they all rely on my code :P) for suggesting browser detection as the solution to *anything*.
    4. Re:Code for IE and Mozilla, easy. by Kris_J · · Score: 1
      Show my user-agent string to them the next time someone brings it up:
      USER AGENT IS Space Bison/0.02 [fu] (Win67; X; SK)
      I'm actually running Mozilla 1.6 on Windows XP. :p
  25. Here's the deal. by Bitsy+Boffin · · Score: 3, Informative

    Pretty much any recent browser EXCEPT Internet Explorer in any of it's incarnations does CSS sufficiently well, bugless and standard like that you can expect things to more or less work the intended way in any of them - with the notable exception of overflow:scroll or overflow:auto in KHTML (Konq, Safari, maybe it's been added recently though?).

    IE is a whole different ball game. In IE there are 3 big problems...

    * First is no PNG-alpha support without ugly (and not brilliant as they will break things like links over the top of them) hacks.

    * The second is floating, that is, using float:left, and especially float:right - this is simply broken on so many levels, depending on what you are floating where, all sorts of things can happen, from losing all your left margins, losing background colours, losing forground text, losing borders, getting extra space, getting less space. This has got to be the most infuriating problem ever, at least you can work around the PNG issue, but this, forget it - you'll never get it right. Many a time I have made a layout, all fluid for browser size and conforming to standards, degrades brilliantly, only to have a look in IE and find it completely torn to shreds because it decided that a float:right somewhere is far to complicated for it to handle.

    * The third is the box-model, althugh it has to be said, I don't really care most of the time if IE displays a box a couple pixels bigger or smaller.

    There are many other smaller issues in IE that you'll come across when writing good standards compliant CSS that will take you ages to figure out.

    To top it all of, Microsoft doesn't give a sh*t about any of these problems, as far as they are concerned IE does everything it's supposed to, so what if it has bugs people will work around them, because hey, we're Microsoft.

    The long and the short of it is, and I hate to say it, you have to develop using IE as your base-reference because it is the lowest-common-denominator, what you do in IE will work fine in the other browsers, but IE simply can't handle the stuff the other browsers can do.

    I'm waiting for the day that Mozilla comes up with some whizzy bang dohickey for the browsing world that everybody wants - bring back the browser wars ! At least IE might get some much needed patching then.

    --
    NZ Electronics Enthusiasts: Check out my Trade Me Listings
    1. Re:Here's the deal. by Anonymous Coward · · Score: 0

      I'm waiting for the day that Mozilla comes up with some whizzy bang dohickey for the browsing world that everybody wants - bring back the browser wars!

      You mean, like tabbed browsing? The privacy key extension (that erases your history, stored passwords etc., I think it's called XKiosk) that doesn't have spyware? The ability to change font size with your mouse's scroll wheel? It's already here.

      <QUOTE>At least IE might get some much needed patching then.</QUOTE>

      No, then Microsoft will just code Windows to sabotage Moz/Firebird somehow - slow it down, or whatnot. Just like they did with MSNBC, coding it so any browser not ID'ing itself as IE would appear to render it incorrectly.

  26. What browser? by Brandybuck · · Score: 3, Insightful

    What specific browser to code for? Well, since you can't possibly code for all of them, code for NONE of them! I hate going into a store that has a sign saying "whites only", so why should I put up with the equivalent on the web?

    If you can put in stuff for one browser and still have it look good on the others, then do it. At the minimum, the site should be fully functional and not ugly under any browser. It doesn't have to be fancy, but it should be navigable without damaging the users' eyes. If you start querying what browser the client is using, you're heading down the wrong path.

    But you still have to test on all of them. At least IE, Mozilla/Netscape, Safari/Konqueror, and Opera, at the minimum.

    --
    Don't blame me, I didn't vote for either of them!
    1. Re:What browser? by Anonymous Coward · · Score: 0

      If you have any programs on your site that does webstats (most sites should have this), you can just look at your logs to see who comes to your site ($10 says IE is in the majority!)

    2. Re:What browser? by Brandybuck · · Score: 1

      Sure you can do that. But why deliberately make your site ugly or unusable for the remaining 5%? In other words, don't put up a sign saying "whites only" if 95% of your customers are caucasian.

      --
      Don't blame me, I didn't vote for either of them!
    3. Re:What browser? by Chess_the_cat · · Score: 0, Flamebait

      Because at that point, it's easier for the 5% to change.

      --
      Support the First Amendment. Read at -1
    4. Re:What browser? by TheTimoo · · Score: 1

      I'm sure it's not the webdesigners job to tell his users what browser to use.

      --
      "Be careful or be roadkill" - Calvin
    5. Re:What browser? by Brandybuck · · Score: 1

      Because at that point, it's easier for the 5% to change.

      Are your HTML skills so utterly lacking that you can't even write compliant markup? You're not going to get your site looking absolutely identical on every browser, so don't even try. But you can easily determine the subset of HTML/CSS that is fully supported under all major browsers, and code to that.

      --
      Don't blame me, I didn't vote for either of them!
  27. Dynamic HTML book by alonsoac · · Score: 3, Informative

    I bought this great book which explains all about CSS and javascript and the differences between browsers. I keep it near me always.

    Dynamic HTML, The Definitive Reference

    There are some reader reviews in there so I won't go into detail, check it out and see if that's what you need.

  28. Standards, Standards, Standards by linuxwrangler · · Score: 1

    Code to the standards. Absolutely. Without Fail. Yes, IE (Windows) is a gawd-awful abomination when it comes to supporting CSS standards. Not that M$ can't do better - that's shown by IE on Mac. Mozilla has some warts, too, but recent versions are far more compliant than IE.

    Sure it's a bit of work (read that as "being a professional") but you can make cross-platform standards-compliant web sites.

    Failing to adhere to standards will bite you in the a**. Just look at what happened to those who assumed (though the RFCs don't allow it) that http://user:password@some.site/ was valid because it worked when they tried it. All their crap broke when M$ issued a patch that removed that non-standard behaviour.

    Even M$ has problems with this. The "box model bug" gave rise to the "box model hack" which lead to M$ having to include a "compatibility" mode in later versions of their browser.

    So I repeat. Stick to the standards - any deviation is at your peril.

    --

    ~~~~~~~
    "You are not remembered for doing what is expected of you." - Atul Chitnis
  29. Re:Can't be done by Anonymous Coward · · Score: 0

    Guess, what cockgobbler? I went to your site and it looks better in IE than in Mozilla FireShit. AHHHAHAHA! Here you are thinking "Yes, score one for open sores!", when in fact you so fucking failed it. All's not lost though. You can take solace in the knowledge that I printed out your front page and wiped my shit-encrusted ass hairs with it.

  30. neither by ajagci · · Score: 1

    The CSS functionality that works the same between the various recent browsers is sufficient to code up good, modern looking websites. There is no need to code in browser dependencies.

    While each browser does support CSS, and even some HTML a bit differently, what functionality seem to be universal across all of the major modern players? Can you design a sharp looking website with such features, without resorting to browser-specific code? If so, how?

    You read the W3 specs and code to them. Then, you test with several modern browsers and remove whatever features still cause undesirable behavior.

    Note that CSS itself has lots of limitations and seems to leave a number of layout decisions up to the implementation. So, you can't realize every flight of fancy, you will have to choose a design that's a compromise between what is possible and what your graphic artists want.

    Note also that "sharp looking" and "usable" are often in conflict to some degree when it comes to web sites. In most cases, usability is more important.

  31. Why code for anything other than IE6? by iCEBaLM · · Score: 3, Insightful

    I think someone doesn't understand what HTML is for. The purpose of writing web pages is not to code for a specific browser, it's to code standards compliant so all browsers (that are also standards compliant) can use it. I don't see any reason why any proprietary extension to HTML should be used on any page.

    1. Re:Why code for anything other than IE6? by Qwaniton · · Score: 0
      I don't see any reason why any proprietary extension to HTML should be used on any page.

      Actually, proprietary HTML extensions are very useful to sadists.

  32. Lynx not out of the game by Anonymous Coward · · Score: 0

    don't rule out Lynx, for some reason on my site it makes up almost 14% of my traffic!

    I say Lynx is making a comeback!

    I for one welcome our new Lynx overlords (again).

  33. Re:Standards, plus an additional comment about "95 by Anonymous Coward · · Score: 0

    now this deserves to be modded up!

  34. My way... by tekiegreg · · Score: 1

    In order of priority (sure flame away)

    1) Latest IE/Latest Mozilla Balance on Windows (needs to be 50% viewable on latest IE and 50% viewable on Mozilla reasonably compromised so right now, IE 6/Windows and Mozilla 1.6/Windows)
    2) One version back of above browsers (IE 5/Windows and Netscape 6/Windows, the Mozillas all render close to the same anyways)
    3) Safari (latest version)
    4) IE/Mac (latest version)
    5) Mozilla/Mac (latest version)

    Beyond that, well I just can't please everyone

    --
    ...in bed
  35. Re:Can't be done by Anonymous Coward · · Score: 0

    I just decided to check (im not the original poster), and his site works perfectly fine in Konqueror (well it loads quite a bit faster in Konqi)

    That kind of begs the question, what is better? Apparently slow loading time and many exploits is a good thing ( http://www.eeye.com/html/Research/Upcoming/index.h tml , don't even think thats a fraction of the amount out there)

  36. Oh, God, please lend him some brains! by Mr.+Piddle · · Score: 2, Funny

    ...unless your webpage is specifically targeting The *nix or Mac crowd why code for anything except IE 6?

    This again? Geezus, why is it that in the computer business that history is doomed to repeat itself every freakin' six months?!? You know, I used to work for a company with an all IE all the time policy. First, even they couldn't do it right, then! They fell into the trap of using all sorts of nifty IE scripting novelties, and, guess what, it sucked! Even worse, it wasn't uncommon for people in the company to need to access websites from a Sun workstation, for example, only to be left cussing from here to the moon.

    DON'T CODE ONLY FOR IE, EVER!!!

    --
    Vote in November. You won't regret it.
    1. Re:Oh, God, please lend him some brains! by Anonymous Coward · · Score: 0
      I design my pages using Opera (using W3C standards only), while others in our group use IE. Guess who spends the least amount of time debugging JavaScript, making sure everything looks good in other browsers, etc, etc??


      As far as I'm concerned, anyone designing HTML pages using only IE to preview/debug them are inefficient and are often poor at it.


      That said, we have a major customer using our site where their engineers are still using Netscape 4.5.1 on Unix, so everything has to look ok for them as well. Every 6months or so I check our logs, praying that they'll upgrade...

    2. Re:Oh, God, please lend him some brains! by Anonymous Coward · · Score: 0

      Refer friends to Brains4Zombies.com and eat their brains!

    3. Re:Oh, God, please lend him some brains! by Mr.+Piddle · · Score: 1


      Thanks, but no. I'm wary of catching Human Nerfoform Enchiladosis. It's a disease where you eat non-stop and have nightmares about being shot out of little guns. A terrible way to die, IMO.

      --
      Vote in November. You won't regret it.
  37. This is [browser] war... by bergeron76 · · Score: 1, Interesting

    Sorry guys, but as guerilla as it sounds, we're at war with the Corporate "pushers". My website "works" on IE; but nothing more [than just work]. However, visitors that have recent/compliant browsers get a much better experience (alpha PNG transparency, etc.). It's evolution. It gives people a _reason_ to upgrade to Mozilla/Opera/whatever_is_standards_compliant.

    I design my sites to offer the users with most compliant browsers the best/most beautiful experiences. Since I control how my content is delivered from the server side [for the most part], I have the power to deliver better content to compliant browsers.

    Should I deliver better graphics to compliant-browsers? Probably not, but this is [browser] WAR - it's an ironic metaphor for the corporations-versus-the_people battlefield of the future.

    My server detects your browser and if it's IE (a KNOWN-non-compliant-pig), I delay the delivery of the content. By doing so, I can provide more server power to the visitors that are using standards-compliant browsers. This might seem trivial, but until you've svelt the slashdot effect firsthand, you probably can't really understand the power of your webserver.

    Never underestimate the power of a strategically placed
    if (useragent!="standards compliant") { "sleep(2); }"
    statement [particularly if it's an unexpected slashdotting].

    Do you honestly think the non-compliant browser "pushers" wouldn't the same thing to us?

    DISCLAIMER: My site is NOT 100% W3C-compliant (yet); but we're working on it.

    --
    Don't think that a small group of dedicated individuals can't change the world. It's the only thing that ever has.
    1. Re:This is [browser] war... by Anonymous Coward · · Score: 0

      The problem is you're at war with the users rather than the software. This may be what you want when you're fighting MS apologists, but what about the average joe or jane? They don't use software because of philosophy; they use it because it's the program invoked when they click Internet in their start menu. Why would you be hostile to people who don't have a clue what you're fighting against?

    2. Re:This is [browser] war... by parksie · · Score: 1

      Eventually they'll decide, "hey, everything's going slow" and hopefully complain to whoever "made their internet" (probably AOL or MS).

    3. Re:This is [browser] war... by stienman · · Score: 2

      My server detects your browser and if it's IE (a KNOWN-non-compliant-pig), I delay the delivery of the content. By doing so, I can provide more server power to the visitors that are using standards-compliant browsers. This might seem trivial, but until you've svelt the slashdot effect firsthand, you probably can't really understand the power of your webserver.

      Uh, let's see if that'll help during a slashdot attack...

      Server stat during slashdotting:
      1264 TCP Connections open waiting on a server side script

      Oh yeah, bet your kernel is loving you right about now. When it gets another packet from any source, it has to search through a few thousand file descriptor entries before it puts the right one in its queue. Buffers are filling up. Impatient users are hitting restart, halfway closing the TCP connection and starting a new one.

      You may want to leave off taking those 'happy' pills for a little while...

      -Adam

    4. Re:This is [browser] war... by Anonymous Coward · · Score: 0

      My server detects your browser and if it's IE (a KNOWN-non-compliant-pig), I delay the delivery of the content.

      Great, so all of us that set our browsers to emit an Internet Explorer user-agent string to get into other brain-dead sites are punished because you don't like a browser? Get real.

    5. Re:This is [browser] war... by elemental23 · · Score: 1

      I don't know if sleep() is implemented in JavaScript but if it is, moving this conditional statement to JS wouldn't affect the server at all, plus you'll get the perverse pleasure of knowing that their own browsers are working against them.

      --
      I like my women like my coffee... pale and bitter.
  38. Never Code For A Browser, Use w3.org Standards by Korgan · · Score: 1

    I don't know about Mozilla Hacks... The only time I've ever seen any sort of hack has been to screw around with CSS so that IE displays things properly... Never for Mozilla.

    Having said that, I am in the process of recoding my site to be completely CSS/XHTML 1.0 Transitional instead of coding it to be for any browser. So I guess that means I suggest you code your pages to the W3.org standards. its the only way to be sure that the browser makers get the point.

    I don't like the idea that Opera promotes of allowing you to pretend to be another browser. The whole idea of coding a page for a specific browser just really pisses me off. If you code a page to a specific browser, what was the whole point in w3.org coming up with standards? And if 90% of people use IE, whats going to get the point across to MS to use the standards properly better? As it is, the whole defacto standard of 'code for IE, the rest can put up with it' is just taking us back to days of 'use MSOffice, the others can kinda view it.'

    The new design I will be putting on my site soon (just finishing colours and graphics) is going to be 100% CSS and XHTML 1.0 Trans and if people using IE can't get the full benefits of it, they can either get a browser that can (firefox) or they can complain to Microsoft about it. If they don't want to do either of those things, well, I'm not going to lose any sleep if they don't come back to my site.

    So basically, don't code for any browser, code to w3.org standards. XHTML 1.0 Transitional/XHTML 1.1 Strict or, if you're proficient in it, go straight to pure XML. Trust me, down the line you'll be much better off and far happier you'd done it now and not waited for Longhorn's release to do so.

  39. And this is better than... by sheapshearer · · Score: 0

    Its been almost 10 years and the WWW is supposed to be a major achievement over gopher....

    Time to dig up all those gopher standards dicussions and bickering from the days of yore...... Oh wait, there weren't any! Gopher was really nice in that respect.

    My, how we have progressed!

  40. Browser support in 2004 by darkpurpleblob · · Score: 2, Informative

    Mezzoblue has a post that pretty much answers this question perfectly. Dave Shea outlines which pre-installed and downloadable browsers your website should be supporting.

    1. Re:Browser support in 2004 by n.o.d.y.n.e · · Score: 1

      Should schmood.

      --
      Failure is simply the opportunity to begin again, this time more intelligently. - Henry Ford
  41. Re:Standards, plus an additional comment about "95 by Anonymous Coward · · Score: 0

    "We're gonna deny access to 5% of your potential customers, and thus cut your web-generated revenues by 5%; but your site will have this cool funky-looking formatting! OK?" More likely, they don't tell the web design customer that they're throwing away 5% of their revenues.

    For lots of companies, 5% of revenues is the difference between profitable and not.


    I too totally agree with this statement. A while back I was going to buy a Lord of the Rings elven broach for my mom. I found the official web store, had the credit card out and was ready to purchase. Unfortunately the web site did not work with Mozilla 1.5.

    Making a standards compliant web site that works on all platforms is not that difficult. Writing software to safely handle credit card transactions is much more difficult. Since the site was not even capable of producing simple browser standards compliant HTML I had no faith in their ability to write code that safely handled my credit card number so I put it back in my wallet and left the web site never to return.

  42. 5% is a lot by jilles · · Score: 3, Informative

    Very few commercial sites can afford not to support 5% of their users. If you can afford to do so, your site is not important.

    I'm working for a company that has to support mozilla in its web based systems because customers demand it. Right now that is giving us trouble because a few years ago we thought like you (i.e. it is our own fault that we are having some maintenance overhead now).

    --

    Jilles
  43. Add a firefox icon to your site. by MooKore+2004 · · Score: 1

    I design my site to valid XHTML standards, If the browser cant display it properly, then it is BROKEN! I should not code web pages designed for BROKEN web browsers. Thats like putting ICE CREAM on the roads to cope with microsoft tyres. I desgign my site with css and transparent pngs, and I always put a firefox button on my site educating users about it. Anyway, if you havent got fire fox yet, you should its the fastest, leanest most freindliest browser there is. Everybody is downloading it! Its so popular that Mozilla.org is still slashdotted two days after it came out! You really shouldnt just code for one web browser just because its market share, you WILL get bitten by the other 4%. I have noticed many previously IE only sites get converted into valid HTML sites after I complained and educated the web master. That would be like baring all kids from your shop because they are only 5% of the customers, its just not right.

    1. Re:Add a firefox icon to your site. by Anonymous Coward · · Score: 0

      It's A giant fox humping the earth!

      Nice sig

  44. You are dumb. by danielsfca2 · · Score: 5, Insightful
    > (go ahead, what type of fanboy am I? ha... can't tell, can you?)

    You're not any type of fanboy. You're just dumb.

    His point was that he used to code for Mozilla, because Moz is very standards-compliant. Now he uses Safari to preview things in, since Safari/KHTML pretty much renders things just like Mozilla does (namely, according to standards)--that's why they made Safari User Agent string:
    Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/124 (KHTML, like Gecko) Safari/125
    That's because it's so freaking much like Gecko (Mozilla) when it comes to rendering pages according to standards.

    He's not trying to cater to one browser--he's using standards-compliant browsers like the excellent Mozilla and Safari to make sure all browsers can render his pages. Just because MSIE has the best market share doesn't mean catering toward it would be a good idea.

    Audience that can view a site designed specifically for MSIE 6.0, assuming general public viewership: 95%
    Audience that can view a site designed specifically to follow standards: 100%

    See the benefit now?
    Show me a website that renders properly in Safari that doesn't render useably in MSIE, and I'll consider removing your dunce cap.

    ActiveX, VBScript...random BHO's and hijacking exploits. Oh, yeah. Let's use that browser as the gold standard.
    1. Re:You are dumb. by HokieJP · · Score: 3, Insightful

      This is not insightful, it's name-calling and pejorative ranting.

      The OP said:
      >The sole reason is that Safari's output is immaculate.

      In your haste, you've imputed motives to him that were not in his post.

      The reply chastised him for using a browser that, while it may be standards compliant and render beautifully, is used by a small minority web users. The Quirks Mode web site details bugs in the implementation of IE and most other browsers. The fact is that no one piece of software perfectly implements any complex standard. Even if your code is 100% standards compliant it may not display properly in IE due to an IE bug. Thus, to use your numbers, only 5% of people could properly view it. So the sensible course for any serious web author is to check their site, at least once in a while, in the most popular browsers, regardless of their personal feelings about the browsers themselves.

      Juse because someone disagrees with you doesn't mean they are dumb. It doesn't mean that you're dumb either. A little civility isn't such a bad thing.

    2. Re:You are dumb. by Michael.Forman · · Score: 1


      You are 100% correct! While I wasn't clear in my original post, you said it better than I could have. First and foremost it is the standards compatibility followed by the high quality of its output.

      Michael.

      --
      Linux : Mac :: VW : Mercedes
    3. Re:You are dumb. by anno1a · · Score: 1

      "Show me a website that renders properly in Safari that doesn't render useably in MSIE, and I'll consider removing your dunce cap."
      As recently posted (by me) my very own page renders just fine in both Mozilla and Opera, but looks despicable in IE... Does it look optimal in Safari? No idea, I don't have access to one (just like I don't have access to IE, but I have access to people who use it).
      Now is it usable to Internet Explorer users? Probably, but it definately isn't pretty... Especially not if you run at a sufficiently low resolution (browser width).

      --
      ------- I fumbled my registration and I now must suffer
    4. Re:You are dumb. by Anonymous Coward · · Score: 0

      It looks perfect in Safari!

      The kerning (space between letters) is a bit wider in Safari than it is in Firefox (Mozilla).

    5. Re:You are dumb. by bamberg · · Score: 0, Flamebait

      His point was that he used to code for Mozilla, because Moz is very standards-compliant. Now he uses Safari to preview things in, since Safari/KHTML pretty much renders things just like Mozilla does (namely, according to standards)--that's why they made Safari User Agent string:

      The grandparent post never said this, as the poster admits. You unjustifiably inferred this, presumably because you're also a Mac fanboy.

      He's not trying to cater to one browser--he's using standards-compliant browsers like the excellent Mozilla and Safari to make sure all browsers can render his pages. Just because MSIE has the best market share doesn't mean catering toward it would be a good idea.

      Fean never said anything about catering to MSIE. You're trying unsuccessfully to put words in his mouth. If you ever tried thinking before you post you would never have said this.

      Show me a website that renders properly in Safari that doesn't render useably in MSIE, and I'll consider removing your dunce cap.

      You should be more concerned about trying to do something to remove your own.

    6. Re:You are dumb. by danielsfca2 · · Score: 2, Insightful

      I'm not a fanboy. You're just jealous because I read his mind. No, seriously. It was obvious from context that he understood the fact that Safari was standards-compliant, and thus felt free to choose it because of its visual quality (over, for example, Mozilla, which is also standards-compliant).

      Did I attribute motives which were not stated explicitly? Yes.
      Was I right? Yes.
      Does it bug you? Obviously.

    7. Re:You are dumb. by bamberg · · Score: 1

      I'm not a fanboy. You're just jealous because I read his mind.

      Learn to read. I pointed out that the original poster replied to you admitting that he hadn't made those points in his original post. What part of his "While I wasn't clear in my original post" line confused you?

      Did I attribute motives which were not stated explicitly? Yes.

      Glad you see you admit that you were completely wrong for criticizing someone for the way they reacted to points that were not actually made in the original post.

      Was I right? Yes.

      About the original poster's meaning? Maybe. He certainly claims that that is what he meant. Were you right to criticize the person who replied to him? No. That was stupid.

      Does it bug you? Obviously.

      Actually, you're the one who's bugged by this, as conclusively proven by your pathetic decision to mark me foe. You'll note that I have not changed my relationship to you, as I attach no special significance to these messages.

    8. Re:You are dumb. by danielsfca2 · · Score: 2, Interesting

      Lol. I marked you foe because there's functionality there, and since it's pretty hard to have a true enemy on a message board, people whose reasoning skills I find illogical go on that list in the hopes that I won't see their posts in the future and waste my (and your) time, since that would generally be a good thing (I waste too much time on /. as it is). Trust me, though, I attach no significance to these discussions either. Hmm... Maybe I should just swap "friends" with "foes" in terms of the modifiers assigned, and really mess with people's heads. "Wow, he just called me a 'fucking wanker' and then he put me on his friends list! Strange!"

      The point still remains that I was right. You say "he...claims that's what he meant"? How are you (and the person to whom I originally replied) more reliable indicators of the OP's intentions than the OP himself? Sorry, the OP has spoken. What part of "You are 100% correct!" didn't you understand? My inference (not assumption, inference) was correct. That makes me right, and it does make fean (the person to whom I replied) dumb for not seeing the inference that I saw. Here's why:

      To use a legal analogy, "the reasonable man" would have read the OP's post exactly as I did, since it would be unreasonable to use a browser in a web development setting for no other reason than visual "prettiness." In the lack of other evidence, the only reason fean assumed this unreasonable notion was so that he could portray Michael.Forman as a "Mac fanboy." If Forman had been speaking of an obscure browser for Windows, fean would likely not have initiated the name-calling. Yeah, I've done plenty of name calling in this thread, too. And I often do so when dumb people set themselves up to be knocked down a few pegs.

    9. Re:You are dumb. by bamberg · · Score: 1

      The point still remains that I was right. You say "he...claims that's what he meant"? How are you (and the person to whom I originally replied) more reliable indicators of the OP's intentions than the OP himself? Sorry, the OP has spoken. What part of "You are 100% correct!" didn't you understand?

      I understand that he's claiming that's what he meant. His original message does not indicate this, however. Maybe that is what he meant and you happened to be right. Maybe he didn't mean that at all but thought it sounded good when you said it. The point is that there was absolutely nothing in his message to even begin to suggest this.

      My inference (not assumption, inference) was correct. That makes me right, and it does make fean (the person to whom I replied) dumb for not seeing the inference that I saw. Here's why:

      Wrong. The incidental correctness of your inference does not excuse you from the stupidity of calling a person who did not make the same inference dumb.

      To use a legal analogy, "the reasonable man" would have read the OP's post exactly as I did, since it would be unreasonable to use a browser in a web development setting for no other reason than visual "prettiness."

      Wrong. It's very reasonable for a Mac user to use a browser in a development setting for not other reason than visual "prettiness". Mac users are typically concerned about visual prettiness; it's one of the advantages of the platform.

      In the lack of other evidence, the only reason fean assumed this unreasonable notion was so that he could portray Michael.Forman as a "Mac fanboy."

      Assumes facts not in evidence.

      If Forman had been speaking of an obscure browser for Windows, fean would likely not have initiated the name-calling.

      Assumes facts not in evidence.

      Yeah, I've done plenty of name calling in this thread, too. And I often do so when dumb people set themselves up to be knocked down a few pegs.

      You should learn to differentiate between a different interpretation and a dumb one before you start calling names.

  45. Best first by eric.t.f.bat · · Score: 2, Informative

    Code for the best first, then add hacks for the rest. That means: get the site looking perfect in the latest version of Mozilla, then add in all the necessary hacks to make it perfect in IE6/Win. After that, you can (if you wish) get it looking good in IE5 on Win and Mac, and if you're a masochist try to make it work in NN4 and IE4. If you use a couple of CSS filters (notably the * html hack and the underscore hack) you can pass commands to IE only, and the various @import and commands will help you serve the right code (or none at all) to other browsers.

    But basically, once it's right in Moz, it's going to be mostly right elsewhere. Whereas if you get it perfect in IE first, you will inevitably find you've done a whole bunch of things the wrong way and you have to UNDO them to get them to work elsewhere.

    Other hints: the box model is only a problem if you use padding, thus: .abc { width: 18em; padding: 1em; }

    <div class="abc">
    <p>Blah blah blah</p>
    <ul>...</ul>
    </div>

    This will make the box 20em in standard browsers, but only 18em in IE5.x. To solve it, replace the rule with: .abc { width: 18em; } .abc * { margin: 1em; }

    Exactly the same effect in standard browsers AND in IE.

    For more, read dithered.com's filter table and follow some of Zeldman's and Mezzoblue's links.

    : Bat :

    --
    I have discovered a truly remarkable .sig block which this margin is too small to conta
  46. What Browser to CodeFor? by fozzmeister · · Score: 1

    I code up PHP/CSS webpages and recently wondered if coding to standards is worth the hassle. We know that each browser supports CSS a little bit differently than the others, and that something that avoids the few troublesome stles works perfectly but I'm too fucking lazy. The net is littered with pages done by people who code for IE and then as an aftertought hack Mozilla onto the top. Looking through two years worth of saved webalizer statistics, 95% of my visits came from IE and the rest from Mozilla, with such a large market share why should I care about standards or about Mozilla. Even the traffic to my site two years ago resulting from this article sent 50% IE users on Windows XP, and the total was 95% from IE. The numbers have only grown more IE 6-dominant since then. Given the overwhelming Internet Explorer user base, unless your webpage is specifically targeting The *nix or Mac crowd why not just target only IE that way I can abandon the crazy idea of writing decent HTML.

  47. Misleading statistics. by Bazzargh · · Score: 3, Interesting

    Just to repeat what everyone else says first: its very important to design to standards. Its the only way to be sure that things will continue to work.

    But a second point: many browser statistics are misleading. As well as it being easier for non-IE users to block webbugs and fake user-agent strings, sites that are designed for IE only suck in other browsers, and arent 'sticky' for non IE users. Non IE users will be consistently under-reported on many sites as a consequence.

    So, if there are 10% of users using non-IE, and you are only getting half of them, should you care? Well, yes. Non-IE users are more likely to be technically savvy - they've got as far as changing their browser!.. and are thus more likely to be educated, employed and able to pay for stuff (especially small shiny expensive stuff). So you lost 50% of one of the best market sectors, while keeping 100% of the deadbeats. Nice move.

    Knowing your market sector is more important than knowing what your browser shares have been. E.g. we work in on sites which are largely browsed by architects, and guess what - they largely use Macs. But we didn't get them until we spent time making the site Mac friendly.

    -Baz

  48. Why? by fozzmeister · · Score: 1

    Unless you want your old customer's bitching at you that your page no longer works properly you have no other choice thant to follow the standards, and even if MS abandon all support for rendering HTML in a half sensible way, you do at least have the option of saying "Its valid (X)HTML, ets a bug in IE, not my problem".

  49. Standards, standards, standards by evalhalla · · Score: 2, Insightful

    As lots of people have said, dont' code for specific browsers, code for standards. HTML is meant to be rendered in different ways on different medias, so try to take advantage from this, not to go against it (and lose).

    When you code try to code html (and php, of course) first, and have it look "readable" in the plain old ugly(?) way, so that everybody will be able to get the informations you're giving. Of course you'll have to think about the future css presentation, by adding classes, etc. but don't add anything visual at this stage. Do not use tables for layout, as they can give a good result on most visual browser, but only do damage when using anything else, or a visual browser in a small window, etc.

    Then you can choose to develop css for a good standard compliant browser such as mozilla or safari, and then fix minor quirks for the most used browser (aka explorer), or if you are tight on time you can try to develop standard css for explorer and test it on standard compliant browser only to check that you're not bringing havoc on them.

    When I'm using a browser that is not mainstream I don't care if something that should take all of my window width only takes 98%, or if there are minimal quirks in the layout, maybe small empty spaces (an em or two) where there shouldn't be any, or similar stuff, as long as I can clearly see the contents; I know it is an issue of browser compatibility and I accept it, people who don't know about it usually use explorer anyway, so it less of an issue.

  50. Mobile devices by neglige · · Score: 1

    I won't repeat the mantra "code for standards, not for browser", that horn has been tooted enough already. But here's why I think it's true.

    If you stick to the standards, and if you try to create a page that looks decent no matter which browser or platform you use, chances are the page will also work - somehow - on a mobile device. Opera is available for the P800/900, there's the PocketIE and there are several HTML browser for PalmOS devices. They do a good job, and if you stick to the standards, you won't be making it harder for them.

    I think they will become more and more popular over the next few years - if you get it right now, you save yourself a lot of work later (which also applies if you do not care if mobile devices can render your page). Instant marketing bonus: you can label your page as "displays fine on mobile devices". Now, how many sites out there can claim that? :)

    Hmmm, can anyone come up with a nice icon for that? *g*

    --
    My cats ate my karma. They also wrote this comment.
  51. The trick with floats in IE by amorsen · · Score: 1

    is that you need to put display: inline in the CSS. Of course display: inline makes no sense at all for a float, so sane browsers simply ignore it. When IE sees it, the annoying margin/spacing bug is turned off.

    --
    Finally! A year of moderation! Ready for 2019?
  52. Mod Story -1 Troll by sepluv · · Score: 1
    Just read it.

    Don't feed the trolls, but briefly, the answer is write it in (X)HTML (and CSS for a range of UA types -- visual, aural &c) -- if you really want lots of people to access it make sure it is still in valid (X)HTML but also is rendered reasonably in a few common randomly-chosen UA's or rendering engines (preferably at different sizes and with different default CSS) -- e.g.: Gecko, KHTML, MSHTML, Lynx, w3m, Opera.

    If you want the latest features of (X)HTML on your page and certain non-forward-compatible UA's that are not being very actively developed (e.g.: MSIE) display the page broken if more recent features are used, then do some UA sniffing to display a message warning your users of the UA problems and giving them the option of viewing a basic HTML 2.0 version of the pages on the site -- you could use a script to generate this from the main site every so often.

    --
    Joe Llywelyn Griffith Blakesley
    [This post is in the public domain (copyright-free) unless otherwise stated]
  53. Site needs trimming by Anonymous Coward · · Score: 0

    1mb+ of images on a frontpage is pretty nasty on 56k modems or even normal-range ADSL. Who is going to wait 5 minutes for the page to load?

  54. What answer are you expcting, exactly? by djkitsch · · Score: 1

    You're asking a community who largely use Mozilla, here - what are you expecting as an answer?

    More to the point: I'm currently working on a community council website which legally HAS to comply to W3C standards, and they've insisted on CSS for layout. Whilst it has taken me a week to write CSS that works on every major browser currently in use (IE6, IE5 mac&pc, Mozilla, Safari, Konqueror, Opera etc), I have finally got there.

    It seems like an odd sort of question - the subject of the number of users is a bit pointless unless we have specific figures. 95% IE users is a lot if you get 100 users a week - it's only 5 users who have problems. If - like my clients - you have 500,000 users a week, that's 25,000 who can't see the site - when you take into account accessiblity too (and local councils are always worried about legal issue surrounding that) you're probably putting a lot of effort for a very small majority of users with screen-readers - but you try telling them that they don't matter because they don't use IE6.

    --
    sig:- (wit >= sarcasm)
  55. My own experiences. by SmallFurryCreature · · Score: 2, Insightful
    As much as I am a penquin lover and a unix freak if you design a webpage it should almost certainly display and work properly in IE. The only exception is sites specifically showing why IE is such an obsolete piece of crap. Say a site showing how nice proper PNG support is.

    Does that mean your site should only work on IE or use IE specific elements? Well consider this. How many years ago was it when netscape rules the browser market? Not that long ago right? Are you prepared to completly rebuild your site if and when IE looses top place? And don't go that will never happen, when the first IE was out people also said it would never beat netscape.

    There is also something else to consider. Opera may have a tiny share of the desktop browser market but it rules supreme on the phones. Worse if you code for IE desktop then you are in for a horrible suprise when someone tries to access your sites with IE for mobile phones. At least the version I worked with didn't support CSS at all.

    So the answer? Make sure your site looks and works properly on IE and make sure it works and looks okay on everything else. Yes that does mean opera AND mozilla AND lynx/links.

    If you want to know why ask yourselve this. If you build a brick and mortar shop would you put in a door that kicks out even 1% of your potential customers? No? Then why do it with your website?

    Displaying a page telling people to "update" to browser X is also a terrible crime. Imagine if you went to a gas station and they told you to buy a new car. You would pissed off. Especially if you drive a motorcycle.

    --

    MMO Quests are like orgasms:

    You may solo them, I prefer them in a group.

  56. Eric Raymond by rixstep · · Score: 1

    Eric Raymond took this up YEARS ago. Just stick to standards. If you can't do it with the standards, don't do it.

  57. Only one browser matters! by stinkydog · · Score: 2, Funny

    Code every thing to render in Lynx! You kids and your fancy [blink] tags don't know how good you have it. Back in the day we did not have "pop ups" and "flash". A couple of tags and some actual content was all we had to design pages with. The web went down the toilet when they introduced Mosiac.

    Seriously, however you format your pages, always fire up Lynx and check your work, a text reader usually sees the web as Lynx does.

    SD

    --
    âoeWho knew something as harmless as willful ignorance could end up having real consequences?â
  58. All of them by pabtro · · Score: 1

    I use the common denominator; limited CSS1, tables and hand coding to get exactly what I want. I test in IE, Gecko, and Opera. No issues. The Visibone color palette is the safest (your colors will look the same in 16, 24, or 32 bit color.). Test all your color gradients to ensure they look smooth in 16 bit color.

  59. Amaya by jago25_98 · · Score: 1

    From a money point of view Mozilla.

    For everything else, Amaya.

  60. And you just killed your customers experience by Anonymous Coward · · Score: 0

    1) Your "sleep" wastes YOUR resources by leaving more webserver processes/threads and connections running for longer.
    2) Lets just hope most of your customers don't have non-compliant browsers
    3) Cos if they have then between them they'll waste all your resources leaving no webserver slots to serve your "compliant" customers
    4) And if this hasn't happened yet, it's because all your "non-compliant" customers have left you because your web site is TOO SLOW
    5) So the only customers you got left are the ones who don't need your help cos they are clever enough to do their own work.

  61. Less hassle coding to standards than to browsers by Qwaniton · · Score: 1

    Marking up to standards shouldn't be harder than marking up to a certain browser. It should be easier, since it's all documented. If a browser breaks, the coders of that browser will fix it[1].

    Second, separate presentation from content. It makes it much easier to make sense out of webpages. If you can't even do that, you really are "fucking lazy". If you're that "fucking lazy", get off the 'net, or at least tell us all where your site is so we can throw it in our /etc/hosts and be done with it.

    [1] Or they won't, as in the case of MICROS~1. With a quasi-monopoly such as the great MICROS~1, they have no incentive to fix IE, since everyone's already using it. But they're not a true monopoly! Download Mozilla Firefox (a better browser anyways, and it's extensible!) and pray to Life.Animalia.Chordata.Mammalia.Primates.Hominidae .Homo.Sapiens.Creator that IE6 will fall off the earth. Blech, what a nasty browser.

  62. Rounded borders by jgardn · · Score: 1

    CSS: -moz-border-radius

    http://lab.artlung.com/css/rounded-mozilla/

    It's perfectly harmless to IE, but it makes rounded borders a billion times easier in Mozilla.

    Note: There are still a few bugs. Try putting content in a rounded border when you don't have enough padding. You'll get square corners poking out of the rounded corners.

    --
    The radical sect of Islam would either see you dead or "reverted" to Islam.
    1. Re:Rounded borders by adamjaskie · · Score: 1

      IIRC, many of the moz- things are CSS3 properties. Since CSS3 has not been finalized, though, they are just using moz- for them. IE has some much weirder stuff though. Some "filter" thing that I haven't looked much into.

      --
      /usr/games/fortune
  63. Invest in working more efficiently by Dracos · · Score: 1

    Code to the standards, and make sure your clients realize that even though "everybody" uses IE, it is a relic, essentially unchanged since version 5.0, released in March 1999. More importantly, IE still has poor support for W3C recommendations that existed for years prior to version 5.0. These things make sites harder to implement, take longer, and therefore will cost more. Your clients will understand that.

    Evangelize standards compliant browsers, both for your clients and for the users on their sites. Web developers are the only people who can drive these changes in the general public.

  64. Turning the question around by spaceyhackerlady · · Score: 2, Insightful

    My response to you: do you want people to access the information on your web pages?

    If the answer is "Yes", then you must take care to make sure that people can, that there are no impediments to people doing so. You must stick to standards, and>you have to test it. I've seen too many web sites that were only "tested" with some version of IE and fell flat on their face with Mozilla or Opera.

    If the answer is "No", then go home.

    My usual baseline is that web pages that look right in Opera will look right in anything. Usability in Lynx is a plus. I'm still unsure if Flash is a disease or a crime.

    ...laura

  65. Re:Less hassle coding to standards than to browser by fozzmeister · · Score: 1

    If you hadn't realised it was taking the piss of the poster, i ^C^V his post and changed some words to what he meant to write :-)

    I do totally disagree with "Marking up to standards shouldn't be harder than marking up to a certain browser", this isn't the case even with Firefox, It renders shit (x)html, sometimes even after you specify xhtml1.1 (I once missed the last " of an attribute and it looked no different. I guess its more important whether it renders correct code correctly rather than definetly breaking on shit code. The w3c has a pretty neat verify service to check its ok

  66. Programming HTML by TheTimoo · · Score: 1

    You heard'em, slashdot (exept for a small minority) want's you to code to standards.
    The mentioning of 'coding' made me think a little though:
    Lot's of people refer to writing webpages as 'programming HTML', I think that's a great Idea! Make the next big markup language a binary format. If you didn't write it properly it won't compile. On the other hand, where would our beloved slashdot go... :-)

    --
    "Be careful or be roadkill" - Calvin
  67. Re:Real smooth, Dan, real smooth. by Anonymous Coward · · Score: 0

    You sir, are a BANANA.

  68. Doesn't work for testing in IE/Mac by tepples · · Score: 1

    True, I can resize my browser, but checking all browsers would require investing thousands of dollars for a specimen of each hardware platform on which a specific browser codebase runs.

  69. Safari core is free software by tepples · · Score: 1

    With ... Safari's sketchy table DOM ... your only option is to wait.

    Safari is based on KHTML, which is LGPL'd. If Apple keeps Safari synchronized with KHTML releases, then you can (hire a programmer to) fix the DOM bugs, submit the patch to the KDE team, and speed up their being fixed in Safari.

    IE/Windows, on the other hand, can be fixed with pop-ups: "You can make this web site look better by switching to Mozilla Firefox today!"

  70. Animated cartoons on the web by tepples · · Score: 1

    Flash may not be entirely useless, but it certainly has no place on the web...

    "No place"? Not even Newgrounds.com? Or would you rather see those published in WMV format?

  71. Bug: Strict lacks <li value="..."> by tepples · · Score: 1

    i usually recommend a sctrict-dtd.

    I moved my site back to Transitional when I found a bug in the W3C's Strict DTDs, namely that the value attribute of the li element was removed on a mistaken notion that value was presentational rather than semantic. Thus, HTML 4 Strict and XHTML 1 Strict make it impossible to start a list anywhere other than 1, a, or i. No, "use CSS instead" is not an option because the list will start on the wrong number in UAs such as Lynx that don't support CSS in general or that particular CSS property in specific. I find the starting number of a list a semantic datum rather than a presentational one; if I wanted to number items from 1 to 10 in the first part of a document and 11 to 25 in the second, would displaying them as 1 to 10 and 1 to 15 be correct? No.

    I moved my site back to HTML 4 when I found that 1. Microsoft Internet Explorer 6 doesn't provide a default XHTML stylesheet for documents that specify the XHTML namespace, and 2. XHTML sent with Content-type: text/html causes some serious problems.

  72. Konqueror for Windows? by tepples · · Score: 1

    But you still have to test on all of them. At least IE, Mozilla/Netscape, Safari/Konqueror, and Opera, at the minimum.

    Unless Konqueror has been usably ported to Microsoft Windows, testing on "Safari/Konqueror" would require a significant investment in a second computer for many web developers, who primarily work on Microsoft Windows workstations.

  73. But I don't have a Mac, you insensitive clod! by tepples · · Score: 1

    But for 2 down, you'll need at least two more computers, one PC (possibly $500 new) to install another Windows instance (each Windows instance seems to allow only one IE version to be installed into it) and one Mac (at least $800 new) to run three Mac based web browsers. If you can get a company to pay for it, that's great, but not everybody has that luxury.

  74. Re:Bug: Strict lacks by nazh · · Score: 1

    I usually recommend strict,yes. But if one have an an exception like this of course you can use Transitional. Usually there shouldn't be any need for a Transitional doctype. (probably cause i'm a bit fed up by messy code ;) )

    And instead of value, I think one wants you to use Counters in css. Of course currently one browser is supporting counters in css.

    Some example of counters.
    www.html-world.de(translated by google)
    www.w3schools.com counter-reset
    www.w3schools.com counter-increment

    I'm also aware of the problems with xhtml, the reason i only said strict, not 4.01 strict or xhtml 1.0 strict. I believe it should be up to yourself to deside which is the best suited for you. But of course there is always a bunch of people jumping the bandwagon. As it is now xhtml1.0 may be sent as text/html http://www.w3.org/TR/xhtml-media-types/ Though i have seen very often pages that is supposedly in xhtml1.1, but sent as text/html. When confronted most of the people that made these pages have no clue what the document should be delivered as. they just think its cool to use the latest doctype. Espesially fun when you know these people use MSIE ;) (MSIE which open a download dialog, when it tries to open a document sent as application/xhtml+xml)

    One could use this apache mod_rewrite described at greytower.net but it really doesn't solve the problem, but it allows the document to be opened in MSIE.

  75. It's pretty easy to tell the real webdevs on here. by venomkid · · Score: 1

    News Flash for all you amateurs: There is no browser war. If your web site doesn't work on someone's browser (especially the MOST USED BROWSER) then your site broken and you will lose visitors, sales, etc.

    But most of you are just "coding" whiney blogs so i guess that doesn't matter to you.

    Build to standards, test for compatibility: Tables for layout, CSS for everything else. IE/Moz/Opera/NS4 on PC/Mac you can be pretty sure.

    Anyone who would build to "standards" despite browser demographics or would impede use of their site by any visitor based on their browser is a moron.

    --
    vk.
  76. Why major sites don't use CSS? by rc22 · · Score: 1

    I have been wondering why major sites don't use CSS for their sites? Sites like Yahoo, Google, Amazon.com, eBay, etc... Why are they still using the font element?