Slashdot Mirror


Ask Håkon About CSS or...?

Back in 1994, while working for the World Wide Web Consortium (W3C), Håkon Wium Lie (pronounced more or less "how come") proposed the idea of Cascading Style Sheets (CSS). Got a CSS question? An Ajax question? Want to know why Håkon loves Free Software so much? Or something else, related or not? Go ahead and ask -- after checking some of the links above, so you don't duplicate questions he's answered in other interviews or in articles he's written. (One question per post, please.) We hope to post his answers Friday.

326 comments

  1. Just one question by suso · · Score: 0, Troll

    Did your parents happen to know English when you where born?

    1. Re:Just one question by emo+boy · · Score: 5, Interesting

      Did you ever think CSS would take off like it has and what do you think is the biggest misuse of CSS today in your opinion?

    2. Re:Just one question by Anonymous Coward · · Score: 0, Informative

      > Did your parents happen to know English when you where born?

      Better than you, apparently.

      (pro tip: The second-person past-tense form of be is were.)

    3. Re:Just one question by FooAtWFU · · Score: 5, Interesting

      On the topic of "misues of CSS", what's your take on the mess of CSS incompatibilities between Internet Explorer, Mozilla/Firefox, Opera, W3C standards, and the like? Do you have any choice words for any of the parties involved?

      --
      The World Wide Web is dying. Soon, we shall have only the Internet.
  2. Does your name... by Stick_Fig · · Score: 3, Funny

    ...validate? :D

    --
    ShortFormBlog: Writing a little. Saying a lot.
  3. Idea? by cosmotron · · Score: 2, Interesting

    What prompted you to develop the idea of Cascading Style Sheets?

    --
    Ryan - http://www.thecosmotron.com/
    1. Re:Idea? by Anonymous Coward · · Score: 0

      BORING! This is the standard vanilla question people ask.

    2. Re:Idea? by cosmotron · · Score: 1

      But, it is still a question...

      --
      Ryan - http://www.thecosmotron.com/
    3. Re:Idea? by Secrity · · Score: 4, Funny

      Shouldn't that be: "What possessed you to develop the idea of Cascading Style Sheets?"

    4. Re:Idea? by Anonymous Coward · · Score: 0, Flamebait

      Or even, "Having seen the ugly hacks necessary to get CSS enabled web site to work correctly for more than one browser version at a time, would you be willing to go back in time and shoot yourself in the head to prevent this abortion from being foisted on an unsuspecting populous in the first place?"

    5. Re:Idea? by Anonymous Coward · · Score: 1, Funny

      How about, "Now that the Slashdot community is aware of who is reponsible for CSS, do you think you need to go into hiding or at least get a bodyguard?"

    6. Re:Idea? by Breakfast+Pants · · Score: 1

      Read his other interviews he has already answered this.

      --

      --

      WHO ATE MY BREAKFAST PANTS?
    7. Re:Idea? by bcat24 · · Score: 1

      Ha ha ha, that's a good question. I know I wouldn't want an army of Slashdotters after me.

    8. Re:Idea? by Anonymous Coward · · Score: 0

      Shouldn't that be: "What inspired you to develop the idea of Cascading Style Sheets?"

    9. Re:Idea? by Imsdal · · Score: 1
      Ha ha ha, that's a good question. I know I wouldn't want an army of Slashdotters after me.

      True, after an attack the pizza and soda stains may never go away.

  4. Super Important Question! by Anonymous Coward · · Score: 1, Funny

    What's the special alt code for that little dealy over the 'a' in your first name?

    1. Re:Super Important Question! by Anonymous Coward · · Score: 0

      Why, are you too lazy to do a View Page Source?

    2. Re:Super Important Question! by markild · · Score: 1

      å or Å should do...

      --
      Scully: Should we arrest David Copperfield?
      Mulder: Yes we should, but not for this.
  5. CSS by dubmun · · Score: 1

    When did the thought that CSS might be possible/useful occur to you?

    --
    (end of post)
  6. Love of free software by iceborer · · Score: 4, Funny

    Want to know why Håkon loves Free Software so much?

    Well...Håkon?

    1. Re:Love of free software by A+beautiful+mind · · Score: 1

      Hack on.

      --
      It takes a man to suffer ignorance and smile
      Be yourself no matter what they say
    2. Re:Love of free software by MrByte420 · · Score: 1

      Hack Off.

      --
      If religous zealots don't believe in Evolution, then why are they so worried about bird flu?
    3. Re:Love of free software by Anonymous Coward · · Score: 0

      Hack On, Hack Off... The Hacker!

      Hack! Hack!

    4. Re:Love of free software by Anonymous Coward · · Score: 0
      Am I the only one that thinks that CSS syntax is ridiculously complicated?

      keywords, start with a ".", must have a comma here or it ignores the rest, braces here and not there, one keyword has the meaning of these three combined (as in Fonts), sometimes you are describing classes - other times names - other times HTML commands.

      It's like a mishmash of ideas from 40 designers or something.

      As programming languages or formatting languages go, I think it ranks up there with Perl in readability, and COBOL in pickiness. Great concept, poor implementation.

      Where's Guido when you need him!

    5. Re:Love of free software by chrnb · · Score: 0

      Reminds me of a chain store i saw in Japan named "HARD-OFF" ^^

      --
      MikMik Baby Organics Mikkaworks
  7. Why? by Anonymous Coward · · Score: 5, Funny

    Free software is destroying american jobs. Why do you hate america?

    1. Re:Why? by alfs+boner · · Score: 1

      A tip for frustrated out-of-work Americans: try not to misspell 'entitled' in your cover letters.

      --
      Listen p*ssy. I'm sure your the same homo that posted earlier about alf's boner and you just want to remain anonymous fo
    2. Re:Why? by Richard+Steiner · · Score: 1

      I've known some frustrated out-of-work non-Americans as well. Any advice for them?

      --
      Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
      The Theorem Theorem: If If, Then Then.
    3. Re:Why? by Anonymous Coward · · Score: 0

      What, "you hate shut your fucking pie hole, ass bandit?"

    4. Re:Why? by Kuxman · · Score: 1

      move to India

      --
      http://www.asti-usa.com
    5. Re:Why? by Anonymous Coward · · Score: 0

      Hey, it's as close a pronounciation as "hawk on"

    6. Re:Why? by alfs+boner · · Score: 1

      Get a job, "consultant."

      --
      Listen p*ssy. I'm sure your the same homo that posted earlier about alf's boner and you just want to remain anonymous fo
    7. Re:Why? by Richard+Steiner · · Score: 1

      I think that's what they're trying to do, and for one of them even a "consultant" gig would be better than what he's currently doing. Don't assume consulting is a shoe-in.

      --
      Mainframe/UNIX Bit Twiddler and long time Windows/Linux Hobbyist.
      The Theorem Theorem: If If, Then Then.
    8. Re:Why? by Imsdal · · Score: 1
      I've known some frustrated out-of-work non-Americans as well. Any advice for them?

      Try not to misspell 'entitled' in your cover letters.

  8. Where... by aleksiel · · Score: 3, Interesting

    Where is CSS going in the future? Expecting anything in particular for CSS4, or will we never reach it?

    1. Re:Where... by aleksiel · · Score: 1

      no, no, further into the future. things that are just ideas right now, not what is being currently developed.

    2. Re:Where... by bcat24 · · Score: 5, Interesting

      CSS 3 *is* far into the future. :) It won't be a rec. for a long time, and it won't be supported by browsers (IE, I'm looking at you) for an eon.

      OK, here's my related question:

      Do you think the W3C development process is too slow? I know that you guys want everything to be perfect, but it seems to take far longer than necessary. CSS 3 shows promise and I wouldn't want it to die a slow death in standardization.

    3. Re:Where... by aleksiel · · Score: 1

      jeez, nitpickey. to refine and restate my question a bit better: I know that CSS3 is currently under development, but do you have any expectations/predictions for what is to come even further down the line? Is there anything that is currently impossible/impractical but you would like to see happen 5 or 10 years down the line?

    4. Re:Where... by Anonymous+Brave+Guy · · Score: 1
      Do you think the W3C development process is too slow?

      If you look around the web, every funky new site and its brother use rounded corners on their boxes.

      If you're a programmer, you'll know that implementing such a feature in a browser is a relatively easy thing to do.

      If you follow developments in W3C standards, you'll know that CSS3 is likely to provide a way to specify rounded corners, but it's a long way away.

      In other words, there is demand for a simple feature, it's easy to implement, but it's not actually being implemented (-moz variant aside) because it's part of the as-yet-unfinished CSS3 monolith. So yes, in at least some respects, the W3C processes are currently way too slow to have any practical value.

      --
      If you disagree, post your argument. (-1, Overrated) isn't your personal censorship tool for views you don't like.
    5. Re:Where... by someone300 · · Score: 1

      Implementing most of the CSS specs in theory is an easy thing to do, provided the browser has a solid, workable base. Firefox has implemented support for specs reasonably speedily, despite it's COM "paperwork" overhead. Though, IE6 has somewhat incomplete and buggy CSS1 support and awful CSS2 support, and worse, 7 years later, IE7 doesn't look set to change this.

      Implementing the child selector ( A > B ) should in theory be very, very simple, especially considering that other selectors are implemented already. Why hasn't this been done as a patch to IE6 -- if the code base were good, it should take no more than 20 minutes. Being that I've not seen the IE code, I can't say for certain, but judging from the speed it takes to do anything and the general bugginess, it must be pretty bad.

      How is this relevant? Well the w3c specs are currently far far ahead of a browser with 90% marketshare, being that a spec 8 years old still has rubbish support. Until browser development speed picks up, I doubt W3C are going to be the main bottleneck.

    6. Re:Where... by Nurgled · · Score: 1

      I think IE's main problem is that it has a legacy from the Netscape era, so their rendering model is designed for that rather than for the CSS rendering model. Though they are superficially similar, there are many important differences, and this is what made Netscape 4's CSS implementation suck so badly: they tried to map it onto their existing rendering model which was fundamentally incompatible. Mozilla, on the other hand, is built on top of the CSS rendering model, with the old Netscape-style model implemented in terms of the CSS model (for the most part, at least). You can observe this by digging out Mozilla's html.css, in which every element's presentation is defined.

      Microsoft is trying to adapt their rendering engine to the new model, but this is obviously proving quite difficult for them. I'd guess that most of their bugs so far have been caused by trying to map CSS onto their old model the way Netscape did, without ensuring that the two are completely compatible.

  9. Opera by taskforce · · Score: 4, Interesting

    Opera 9.0 seems to offer a lot of decent additions to Opera's standards pool. How satisfied are you personally with the work the team has done on implementing standards, and is there anything in there you feel is superflous and anything you would have preferred to see which wasn't in there?

    --
    My 3D Texturing Skinning work (under construction)
    1. Re:Opera by slashdotnickname · · Score: 2, Funny

      Opera 9.0 seems to offer a lot of decent additions to Opera's standards pool. How satisfied are you personally with the work the team has done on implementing standards

      Translation: I like Opera, please give them your blessings so that I may sleep at night.

    2. Re:Opera by Anonymous Coward · · Score: 0

      See also: "Please, please, please say bad things about Micro$oft!"

  10. Pronunciation by gammelopland · · Score: 1

    Actually, "hawk on", with the stress on the first syllable, would be a much closer approximation to the correct pronunciation than "how come". There's no diphtong, as in "how", and there's an "n", not an "m" at the end.

    1. Re:Pronunciation by EvanED · · Score: 4, Informative

      To be fair, "how come" is how he describes it on his website, and he even uses the email address howcome@opera.com. That wasn't an editorial or something by the editors.

    2. Re:Pronunciation by Anonymous Coward · · Score: 1, Interesting

      There's no diphtong, as in "how", and there's an "n", not an "m" at the end

      Well, the latter is obvious. But you could make an argument for the "how" diphthong.
      Most "å" letters in modern Scandinavian, including the one in Håkon/Håkan correspond to the "á" diphthong in Old Norse/Modern Icelandic. Which is pronounced as "au", just like "how". So the original (or Icelandic) pronunciation would indeed be more like that.

      The diphthongs were lost from the rest of the Scandinavian languages somewhere around the 12th century. In a kind of odd twist, they were reintroduced into southern Swedish dialects later, making them actually sound a bit closer to the original in that respect.

    3. Re:Pronunciation by Anonymous Coward · · Score: 0

      I have just one question and one statement for Håkon: hack-on how come

    4. Re:Pronunciation by gammelopland · · Score: 1

      It's imprecise, nonetheless. My suggestion is much closer, unless he speaks with a very funny accent.

    5. Re:Pronunciation by aesiamun · · Score: 1

      yeah you're right, he has absolutely no idea how pronounce his name.

      I'm glad you're here or I wouldn't know anything!

    6. Re:Pronunciation by ESqVIP · · Score: 1

      Great, you just filled his inbox with more spam.

    7. Re:Pronunciation by empaler · · Score: 1

      He's right, you know. Hawk-on is much closer. I'm guessing Håkon is describing his name the other way because that's the closest he's used to getting foreigners to pronounce his name.
      That said, my best friend's name is Laurent, but since Danes suck at pronouncing it, he introduces himself as 'Lau'.

    8. Re:Pronunciation by Anonymous Coward · · Score: 0

      Of course, it would be even better described as 'hoe con.' The å is pronounced as 'oh' is in English, and the syllable break is more before the k than after it, though there's essentially no difference I can tell between 'hoek on' and 'hoe con'.

  11. I have one by linvir · · Score: 2, Funny

    Why do you love Free Software so much?

  12. Padding by Anonymous Coward · · Score: 5, Interesting

    Why was the decision made to make padding apply outside of the width of a 'box', rather than inside, which would seem to make more sense?

    1. Re:Padding by Anonymous Coward · · Score: 5, Interesting

      In addition: Was an concideration given to the effect that this would have on blocks using percentages for sizes? Is any concideration being given to fixing the problems that this causes?

    2. Re:Padding by gfxguy · · Score: 1

      And isn't it amazing that this is one "standard" that MS got right by breaking (until they were chastised into "fixing" it)? Oh, the irony.

      --
      Stupid sexy Flanders.
    3. Re:Padding by Anonymous Coward · · Score: 0

      I thought padding inside a box was called a margin.

    4. Re:Padding by Millennium · · Score: 1

      It applies inside the padding so that the width and height you specify are that of your content. Visual design is not content, which is why these are not included in the height/width consideration.

      Or at least, that's how the logic behind the decision supposedly goes.

    5. Re:Padding by pikine · · Score: 5, Informative

      Space inside the box is the "padding," while space around (outside) the box is the "margin." Between "padding" and "margin," there is also a "border." I'm not sure if asking how the terminology is determined is very interesting.

      --
      I once had a signature.
    6. Re:Padding by Anonymous Coward · · Score: 1, Interesting

      Perhaps I should have been a little more specific. What I meant to ask was why does the 'width' attribute of an element not determine its actual width. While I can see the reasoning, that the width applies to the content and not the presentation, it would serve to make things a lot less confusing, not to mention make bugs easier to find, if the 'width' actually specified the absolute width of an item, the way things worked in older versions of IE. If Microsoft was ever right about anything, I think they were right there.

    7. Re:Padding by mugenjou · · Score: 1

      in CSS3 there is the box-sizing property, if you set it to border-box you get the behaviour you want. gecko has supported this for a while as -moz-box-sizing. don't know about other browsers.

      --
      DualBrain - Level Up Your Brain! - now available on your iPhone!
    8. Re:Padding by RJabelman · · Score: 1

      GP, isn't asking about the terminology. According to the W3C box model, the css 'width' property sets the width of the content. The padding is then applied around that. Then the border's drawn around the padding, and the margin around the border. While it's wrong, the buggy model that IE uses in quirks mode seems more intuitive at first glance. See here for a comparison: http://en.wikipedia.org/wiki/Internet_Explorer_box _model_bug That's what the GP is asking.

    9. Re:Padding by quis · · Score: 3, Insightful

      What I think he means is that adding padding actually makes the box wider, rather than the content inside narrower. i.e a box with 400px of content is 400px wide, but with 50px of padding all around it becomes 500px wide rather than 300px of content in a 400px box.

    10. Re:Padding by IamLarryboy · · Score: 1

      Mod parent -1 wrong. Padding is outside the width of the box according to the standards. However everyones favorite browser implements it inside the box. Consider the following CSS

      #somebox
      {
        width : 10px;
        padding : 10px;
        border : 10px solid #000;
        margin : 10px;
      }

      According to standard this box will take up 40px of space, be 30px to the edge of the border, and be 20px wide with 10px for content.

    11. Re:Padding by Carewolf · · Score: 1

      Opera, Safari, Konqueror and MS IE for Mac all support it by just using "box-sizing: border-box"

    12. Re:Padding by Ranx · · Score: 1

      And who made the decision and is he/she already been punished? :-/

      --

      Me
  13. No, really! -- a slashdot editor wrote this! by Qubit · · Score: 5, Funny
    Go ahead and ask -- after checking some of the links above, so you don't duplicate questions he's answered in other interviews or in articles he's written.

    Duplicates? On Slashdot? Surely you jest, sir!

    --

    coding is life /* the rest is */
    1. Re:No, really! -- a slashdot editor wrote this! by Dolda2000 · · Score: 1

      Indeed. At least they've realized that they can't handle it -- that's why they ask each one of us to check for duplicates instead of doing the filtering themselves before passing them to poor Håkon.

    2. Re:No, really! -- a slashdot editor wrote this! by colinbrash · · Score: 5, Funny

      Duplicates? On Slashdot? Surely you jest, sir!

    3. Re:No, really! -- a slashdot editor wrote this! by DG · · Score: 1

      Duplicates? On Slashdot? Surely you jest, sir!!

      --
      Want to learn about race cars? Read my Book
  14. Why is CSS such a good idea but a pain to use? by 1155 · · Score: 5, Interesting

    CSS is a great idea, separating content from everything else. My problem with it is that it's such a horrendous beast of a thing to implement. For instance, there's nothing really good for say, putting something into "the middle" from what I can find. Now if there is, fine, don't make this question about the example. There are literally hundreds of design decisions that feel like they were implemented in a way to just make things as difficult as they can be.

    Why is CSS such a pain compared to other languages?

    1. Re:Why is CSS such a good idea but a pain to use? by Anonymous Coward · · Score: 0

      #block
      {
      margin-left: auto;
      margin-right: auto;
      }

      #inline
      {
      text-align: center;
      }

      Just choose the correct one for the element. Now, that wasn't so difficult, was it?

    2. Re:Why is CSS such a good idea but a pain to use? by mini+me · · Score: 4, Insightful
      Why is CSS such a pain compared to other languages?

      It's really not that bad once you get on to it. It would be nice if it could do math to calculate positions/sizes/etc., and supported multiple backgrounds for a single element, ala Safari. But all in all, it's poor browser support that really makes CSS difficult.
    3. Re:Why is CSS such a good idea but a pain to use? by Anonymous Coward · · Score: 0

      OK smart-ass, now center it horizontally.

    4. Re:Why is CSS such a good idea but a pain to use? by 1155 · · Score: 1

      Middle means the middle. I think what you have here would only place it at the center at the top. Could be wrong, just woke up and haven't had my booze yet.

    5. Re:Why is CSS such a good idea but a pain to use? by DarkSarin · · Score: 3, Insightful

      Not only does that only center horizontally, it doesn't even work in all browsers!

      Vertical centering is just as important. I want to be able to (without tables) place a 500x500 box center of the window without resorting to some wierd javascript to do it. You give me a div (or p) that does this in all browsers with zero javascript and I will be impressed.

      Browser support is the other issue, and it is a killer.

      That said, I love the concept and most of methods, I just hate the browser wierdness.

      --
      "We don't know what we are doing, but we are doing it very carefully,..." Wherry, R.J. Personnel Psychology (1995)
    6. Re:Why is CSS such a good idea but a pain to use? by Anonymous Coward · · Score: 0

      Multiple backgrounds are coming in CSS3. Safari (and another browser I think) went ahead and implemented it ahead of time.

      And you'd actually be surprised at how well-supported CSS is across browsers (even IE6). Some people just make the mistake (among several others) of not declaring a specific doctype (eg. XHTML Strict), which basically tells the browser to revert to its own uniquely quirky quirks mode.

    7. Re:Why is CSS such a good idea but a pain to use? by gfxguy · · Score: 2, Interesting

      People used tables for layout because it was the easiest way to center things - and it worked well if you made sure all your tags were nested and closed correctly. Then along comes CSS, and tables are taboo for layout (and for some good reasons, too)...

      But there are cases where CSS cannot perform layout as well as tables. One of the reasons is because you can center a table that is sized to fit the content. In other words, in CSS you need to specify the size of the container in order to "auto" the margins so that it gets centered. But what if the size you pick is not perfect? What if the user changes the font size? If you set a container (like a DIV) to a fixed or relative width, then the user messes up the layout by changing font sizes, which might cause, for example, lines to wrap even though there's enough horizontal screen space to handle the larger size.

      If you'd used a centered table without fixed size, the table would expand until there was no horizontal space before wrapping - that's the usual desired effect. Now, containers CAN size to fit their content if they're floated - but you can't float: center.

      So one question is "You have float: left, and you have float: right... why no float: center?"

      Luckily this is slashdot and I can ramble on endlessly...

      Separating markup from layout and design is a wonderful idea, but CSS can't do everything that tables can do for layout (or it can't do it as well). The 2 and 3 column layouts, the so-called "Holy Grail" of web design, for example, can't be done as easily or as well (generically) in CSS as they can be done with tables (I'm not going to get drawn into an argument about it - I know how to do multiple columns in CSS, but problems with column lengths and the already mentioned problem of padding, margins, and borders not being included in the width cause problems you wouldn't have with tables).

      Now, I know a lot of purists will insist I'm just whining, but doesn't that show there are a lot of shortcomings to CSS when sometimes markup actually does a better job of layout?

      --
      Stupid sexy Flanders.
    8. Re:Why is CSS such a good idea but a pain to use? by kaizokunami · · Score: 4, Interesting

      Vertical centering is just as important. I want to be able to (without tables) place a 500x500 box center of the window without resorting to some wierd javascript to do it. You give me a div (or p) that does this in all browsers with zero javascript and I will be impressed.

      The way I usually do it is with negative margins. It's kind of a workaround, but it does work. Position the div 50% from the top and left, and then give it a negative margin-top & margin-left equal to 1/2 its own height & width respectively (in the case of 500x500, use a -250px margin) and it should center vertically.

      For example, I use something like this on one of my sites:
      #container {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index:1;
      width: 500px;
      height: 500px;
      margin-left: -250px;
      margin-top: -250px;
      }

    9. Re:Why is CSS such a good idea but a pain to use? by nuzak · · Score: 1

      > So one question is "You have float: left, and you have float: right... why no float: center?"

      Actually, the real question is why not float: <arbitrary function>

      DSSSL had this sort of thing solved before HTML even existed, let alone CSS. But scheme is too scary and icky, and the W3C believes in a principle of least power, so CSS has to be fully declarative, static, and crippled until patched later.

      --
      Done with slashdot, done with nerds, getting a life.
    10. Re:Why is CSS such a good idea but a pain to use? by gfxguy · · Score: 1

      You're right, of course, I can think of a lot more than right, left, and center, if I put my mind to it.

      --
      Stupid sexy Flanders.
    11. Re:Why is CSS such a good idea but a pain to use? by Bogtha · · Score: 1

      Multiple backgrounds are coming in CSS3. Safari (and another browser I think) went ahead and implemented it ahead of time.

      Yes, all KHTML-based browsers now support CSS 3 backgrounds.

      And you'd actually be surprised at how well-supported CSS is across browsers (even IE6). Some people just make the mistake (among several others) of not declaring a specific doctype

      Well no, CSS isn't well supported. You're making the mistake of forgetting about the entire sections of CSS that Internet Explorer doesn't implement, and which everybody tends to ignore for that reason. There's at least four large sections of the CSS 2 specification that simply don't exist for most developers because they aren't implemented in the browsers most people are using.

      Yes, it's true, strict mode can solve a few problems with rendering, but that's insignificant compared to the amount of stuff that just isn't implemented in Internet Explorer.

      --
      Bogtha Bogtha Bogtha
    12. Re:Why is CSS such a good idea but a pain to use? by bcat24 · · Score: 1

      Actually, it's easier to put IE6 in quirks mode (you can do this using a comment before the doctype). Then it behaves pretty much like IE 5.5, so it makes cross-browser testing a little nicer.

    13. Re:Why is CSS such a good idea but a pain to use? by Anonymous Coward · · Score: 0

      Wouldn't that go weird if you reduced the size of the viewport?

    14. Re:Why is CSS such a good idea but a pain to use? by kaizokunami · · Score: 1

      In my experience, it usually stays centered properly until you reduce it to below the size of the box, and then it just scrolls.

    15. Re:Why is CSS such a good idea but a pain to use? by musicmaster · · Score: 4, Insightful

      Because CSS is based on many misunderstandings:

        - You are supposed to separate content and visual elements. An input is both.

        - An HTML page has to be XML. To achieve this part of positioning is delegated to attributes.

        - The belief that tables are bad. In fact they are very intuitive elements - unlike the DIVs. It would have been much better if we could do with one block element that had the strong points of both tables and divs.

        - A total disregard for consistency. Every HTML page contains 3 languages for the same thing: HTML, CSS and javascript. In many cases all three use slightly different names for the same thing. It would have been much better if they had been integrated into a consistent interface.

      My question for Hakon: HTML became popular because it was so simple to use that everyone could use it. CSS by contrast is so complicated that only fulltime professionals understand it. Will CSS stay an elite thing?

    16. Re:Why is CSS such a good idea but a pain to use? by joggle · · Score: 2

      So, given two parent posts, shouldn't it be easier (or at least more obvious) to center a div vertically?

    17. Re:Why is CSS such a good idea but a pain to use? by rar · · Score: 5, Interesting

      ... There are literally hundreds of design decisions that feel like they were implemented in a way to just make things as difficult as they can be.

      I'd like to try to turn your observation into a more specific question:

      CSS is clearly very useful for separating style from content. But apparently people tend to have problems when using it for layouts. Would you say this is because people have not yet understood how to properly do layout in CSS, or is it CSS that is lacking in this area? What can be done to improve the situation? --- Would the web benefit from HTML and CSS being complemented with some kind of "layout language"?

    18. Re:Why is CSS such a good idea but a pain to use? by NutscrapeSucks · · Score: 1

      My question for Hakon: HTML became popular because it was so simple to use that everyone could use it. CSS by contrast is so complicated that only fulltime professionals understand it. Will CSS stay an elite thing?

      Yeah, HTML was originally designed to have simple tags such as B, I, U, and then some PhD Wanker Extreme (sorry Hakon, but it's true) came along and decided they needed at least three different properties: font-weight, font-style, and text-decoration. I'm sure many late nights were spent debating the exact genus and species of something that's never been modeled as more than one property in a GUI program. And that's just the font styles, it gets more and more wankerish as you delve into the complicated stuff.

      A total disregard for consistency. Every HTML page contains 3 languages for the same thing: HTML, CSS and javascript.

      Nutscrape had something called JavaScript Style Sheets ... and even though the implementation was problematic and proprietary, I can't help to think that everything would have nicer if the style model was built on the browser's scripting capabilities. Not only would having variables and so on be nice, it would nicely blur the lines between a hack and a solution removing a lot of the distastful academic purity from layout implementations.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    19. Re:Why is CSS such a good idea but a pain to use? by dolphinling · · Score: 1

      So one question is "You have float: left, and you have float: right... why no float: center?"

      Because that's not what floating is for!!

      Floating is for one specific use case: columnar content, with a section taken out of flow but still within the column. Think of a newspaper, with an image and its caption. They don't interrupt the text but they're physically still within the column. CSS 3 does in fact introduce new float values, but they're for use with the new multicolumn features, like floating something partway in one column and partway in another.

      All other uses of floats are hacks, in the bad sense. And yes, that does mean there's no good way in CSS 2.1 to do complex full-page layout. The CSS 3 Advance Layout Module is designed to fix that.

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
    20. Re:Why is CSS such a good idea but a pain to use? by dolphinling · · Score: 1

      To answer your question so he doesn't have to: Layout is a part of style. CSS is definitely lacking in this area (the main property used for layouts, float, wasn't even intended to be used that way, and 99% of uses on the web are hacks). The CSS Advanced Layout Module is being designed to fix that. So no, another language doesn't need to be designed, CSS just needs to get the features it's lacking.

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
    21. Re:Why is CSS such a good idea but a pain to use? by colmore · · Score: 2, Informative

      If you don't think tables are bad, then you aren't designing for cellphones, text-only brpwsers, braile readers, etc. etc. etc.

      If you're just making static pages for personal use, go ahead and do whatever. The primary goal of stylesheets isn't to make layout easy (obviously...) it's to break down elegantly on non-standard devices. A good CSSed document will be inteligeable if all formatting gets turned off and it just reads as a long page of text.

      While the language has its problems, MOST of the complaints seem to come from people who want to put their heads in the sand and pretend like it's 1998 and all you need to do is make sure your page renders at 800x600 on two browsers and you're done. The web's a bigger place than that now, and the technology has by necessity gotten more complicated.

      --
      In Capitalist America, bank robs you!
    22. Re:Why is CSS such a good idea but a pain to use? by colmore · · Score: 1

      Do you think the complaints about CSS fail to consider the scope of the problem?

      Laying out text is not a simple problem. The file formats of programs like InDesign and Scribus are tremendously complicated, and they don't even have to deal with an arbitrarily sized page surface that may or may not implement ANY of the described features.

      CSS isn't a lanugage for creating 3 column layouts or centered boxes or anything like that. It's primary purpose is to break elegantly. Someone out there is reading the page in text-only mode. Someone is on a cellphone with a 320 pixel wide screen. Someone else is viewing at 1600x1200. In the 90s you saw books that more or less said if your page looks right in 800x600 and it renders in the two leading browsers, your job was done. The web isn't that simple any more. And while some designers might not see it this way, the need to create pixel-perfect layouts or waste space by surrounding a little box in the middle of the screen with a bunch of white space do not trump greater usability issues.

      Second question: If CSS alone isn't up to the task of meeting both cross-platform user needs AND satisfying designers' OCD, what form do you see the solution taking? Are there any satisfactory candidates out in the wild right now?

      --
      In Capitalist America, bank robs you!
    23. Re:Why is CSS such a good idea but a pain to use? by l0b0 · · Score: 1

      How can this be insightful? This must be the biggest collection of web design misconceptions I've ever read.

      • You're supposed to separate semantics and style, because it makes the pages more flexible, accessible, and terse. Everything on a web page has some semantics (if marked up properly) and a style which completely depends on the capabilities of the client. If you believe these are inseparable, I bet you've never used a textual or audio browser. Input elements are no different from other markup in this respect.
      • An HTML page cannot be XML. At least, it cannot be valid HTML and valid XML, except for trivial cases. XHTML is valid XML, but it wasn't created because of CSS. It was created because of stricter syntax rules (leading to easier parsing). CSS works fine with any XML, but millions of pages use it successfully with old-style HTML. And I'd love to know what kind of positioning can only be handled by attributes - I've never seen a case of this.
      • Only uninformed zealots will tell you that tables are always bad. Tables have a well-known semantic meaning, but that does not include layout. DIVs also have a well-defined meaning: Division. DIVs separate the markup into parts, which can then be styled (and positioned) at the whim of the developer. But, being completely flexible with regard to visual representation, they can be difficult to handle for novices - Been there, done that. Positioning is IMO the only really difficult part of CSS, mostly because of client bugs. Oh, and DIVs are block elements, even though you can override this.
      • HTML, CSS, and JavaScript are not the same thing! HTML defines contents, and can be used for web pages, help files, presentations (S5), and books. CSS defines style, and can be used for any HTML or XML markup. JavaScript defines functionality, and is a full-fledged programming language. It's a pipe dream that any number of languages with vastly different capabilities and goals can be merged into a consistent whole without adding oodles of complexity.

      To answer your question: CSS is not an "elite thing". It's really quite simple, if you run through a tutorial or two. I recommend W3Schools' tutorial to start with and for reference, Jeffrey Zeldman's Designing with Web Standards to learn practical CSS, and searching Digg, Reddit, and especially del.icio.us to learn lots more.

    24. Re:Why is CSS such a good idea but a pain to use? by rar · · Score: 1

      The CSS Advanced Layout Module is being designed to fix that.

      Thanks for the intresting link; to me, that upcoming draft looks like an attempt to embedd a layout language inside CSS. (More precisely: inside a "template string" CSS property called 'display' that uses what appears to be a rather non-CSS-like syntax...)

      However, I would still really like to know if he agrees with you that something like that upcoming draft is greatly needed, and (as you say) current use of CSS for layout are "hacks".

      A reply similar to yours from the person proposing CSS would be an intresting contribution in the debate on the use of (current) CSS for layout. There are a lot of people out there that advocates that what you call "hacks" are 'the right way of doing things'.

    25. Re:Why is CSS such a good idea but a pain to use? by Keeper+Of+Keys · · Score: 1

      This only works if you know the height of the element you're centering. In which case, you might as well figure out how much top margin is needed to centre it vertically. There is no usable CSS solution to the general case, yet.

    26. Re:Why is CSS such a good idea but a pain to use? by Nurgled · · Score: 1

      CSS supports a table layout model. Firefox, Opera, Safari and Konquerer all support it. Note which popular browser is missing from the set. Working entirely from the standard, you can create a table-like layout without table markup. For example

      body {
      display: table;
      }
      body #navbar {
      display: table-cell;
      }
      body #main {
      display: table-cell;
      }

      The main disadvantage of this (other than IE's lack of support) is that the document content must be in the right order to follow normal table layout. CSS3 has features that address this limitation by allowing you to shift about the order of elements from the stylesheet, so if we ever manage to get there CSS tables might become workable.

      Your closing question is fair, though. I can't help but wonder what documents they had in mind when they were designing the CSS layout model, since it seems to make common things very difficult (columns, dividing lines, etc) by optimizing for "one-dimensional" rendering, which is very rarely used.

    27. Re:Why is CSS such a good idea but a pain to use? by gfxguy · · Score: 2, Informative

      Which is why tables are still better for some simple layouts - more compatible and they do what you want.

      I'm all for separating markup from layout, but it simply doesn't work right yet.

      --
      Stupid sexy Flanders.
    28. Re:Why is CSS such a good idea but a pain to use? by flieghund · · Score: 1

      I think l0b0's response best addresses your list of "complaints," but I have some additional insights into a couple of them.

      Every HTML page contains 3 languages for the same thing: HTML, CSS and javascript.

      I disagree. Many HTML pages I write are in "pure" (X)HTML. While there are references to CSS and JavaScript (via rel tags), but the actual code is handled "off-page" in separate files: There is no CSS or JavaScript in the HTML itself. This is very convenient because (1) I only have to write them once, and (2) I can update my entire site quickly by changing only one or two files rather than every page. Now, of course, there are some things that are easier to do with inline CSS or JavaScript, but that doesn't mean they are required and certainly not present in every HTML page.

      HTML became popular because it was so simple to use that everyone could use it.

      I'm not so sure this is necessarily such a good thing. Lots of things are "so simple to use that everyone could use it." Cars. Guns. Television (watching at least). Drugs. Ease of use often means ease of abuse. Have you actually looked at the HTML behind MySpace? Or the old Slashdot? "Make something even an idiot can use and only idiots will use it."

      CSS by contrast is so complicated that only fulltime professionals understand it.

      Really? Because my fulltime profession is architecture (and anyone familiar with that field can tell you that it leaves precious little time for anything else), not web design, but I seem to have a pretty good grasp of CSS. Have you tried reading some books about CSS? Visited CSS Zen Garden and (gasp!) actually read the style sheets?

      I think a lot of people come from a background of "old-school" HTML table layouts and simply throw up their hands when CSS doesn't work the same way. CSS is a kind of "paradigm shift" in terms of thinking about how content is presented, and not everyone used to one method will be able (or willing) to understand a different method. That does not mean the new method is bad. I am not a programmer, but I understand the fairly significant differences between monolithic coding and object-oriented coding. I can imagine a lot of "old-school" programmers failing to grasp the concept of OO programming, throwing up their hands and delcaring it a pointless waste of time. But that doesn't make it true, and the legion of OO-coded programs out there proves it.

      --
      "I came here to kick ass and chew bubblegum. I'm all out of bubblegum." MSE USC APX AIA CSI CASp
    29. Re:Why is CSS such a good idea but a pain to use? by Random832 · · Score: 1

      No - to "might as well figure out how much top margin is needed" you also need the height of the viewport.

      --
      We've secretly replaced Slashdot with new Folgers Crystals - let's see if it notices.
    30. Re:Why is CSS such a good idea but a pain to use? by Keeper+Of+Keys · · Score: 1

      True. Or containing block. I stand corrected. But still, no solution if your content is at all fluid.

    31. Re:Why is CSS such a good idea but a pain to use? by dolphinling · · Score: 1

      Note that tables are also a hack, and even worse of one, because not only is it not what they're designed for, it also breaks the separation of content and style.

      Note that it's also only "more compatible" if the viewer has a similar display to yours. If they have a very small screen, or a very large screen, or spoken, or braille, or text, or a pseudo-AI parser, or etc. a table will be less compatible.

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
    32. Re:Why is CSS such a good idea but a pain to use? by RoloDMonkey · · Score: 1
      I'm a sysadmin. If you see me running, save your work...
      ...locally.
      --
      Long live the Speaker Bracelet
      Rolo D. Monkey
    33. Re:Why is CSS such a good idea but a pain to use? by gfxguy · · Score: 1

      No, actually a properly defined table is going to be more stable across different browsers than properly defined DIVs. The only argument against using a table for a simple layout is that it doesn't meet the philisophical criteria of separating markup and style.

      It's true that you're asking for problems by trying to get pixel perfect layouts using nested table within nested table, but, for example, the simple two and three column layouts are more stable with tables then they are with divs. I'll give an example - you want three columns, all the same length.

      Tables: You create a table with one row and three data elements. You style the table to be whatever width you want (let's say 90% to make some nice space on the sides). You style the data elements to be 33% width. Your table will resize nicely to any display setting, and all the columns will be the same length (so if you have a background image, for example, it extend in all three columns).

      Divs: Well, the possibilities are endless, but if you want something like the table I'd create, you create a left floating div of width 33% inside of another div whose width is 90%. Piece of cake. Except the columns aren't the same length. Well, you could specify the height, but then dynamic content will cause problems. Also, let's say you want a border between the columns, or some spacing. So you increase the margins and add a border. Oops... now your divs are taking up more than 33%. How much more? I don't know - they're fixed, but the width of the browser isn't, so suddenly you start doing things like 30%, and hope the user doesn't shrink the width of the browser enough to cause one column to drop down. So you come up with other workarounds to make divs work.

      A three column table is not that complicated, will adjust to a large screen easily, is not going to break a reader or braile, and it's less compatible with what?

      I'm not saying I do this, I really try to avoid the design/markup mingling, but it seems like people are jumping through awfully complicated hoops just to not use a simple table. The fact is that CSS is not (yet) the be-all and end-all of design and layout solutions. And even when browsers start supproting CSS 3 and higher, where does that leave me NOW? And even in five years, the "philosophers" of HTML will be saying we need to make our layouts compatible with older browsers that don't support the new features - so we can still use tables to make a nice simple layout that will work on new AND old browsers, or we can double the size of our CSS so that it'll work with a variety of incompatible browsers.

      It just doesn't make sense. The fact is that many modern sites do a fine job with tables, and don't seem to have compatibility problems with browsers for impaired readers...

      CNN, Microsoft's Web Outlook, IMDB, Newegg....

      I'm not saying, philisophically, that it's a good thing; I'm saying that, at this point in time, it's a practical thing. I've struggled for hours trying to get something to work with divs that I could have done with a table (so yes, I avoid using tables for layout), only to then discover it doesn't work on another browser (usually IE). A table solution would work for both. And as a matter of fact, yes, I can give you specific examples where a single one cell table can do things CSS can't. A lot of people consider it nit-picking (and it mostly probably is), but if CSS was designed for layout, it needs to do a better job of it. The problem is that it's already too late - we'll be supporting the current standard for years.

      --
      Stupid sexy Flanders.
  15. Data transformation a la XSLT? by gaspar+ilom · · Score: 3, Interesting

    1.) What do you think of XSLT?

    2.) Would it be crazy to have CSS incorporate data selection and assembly? (using something like XPath -- alowing more complete segration of data and formatting.)

    1. Re:Data transformation a la XSLT? by dolphinling · · Score: 1

      In regards to your 2), do you mean "don't put this paragraph where it's placed in source order, but instead put it after that one over there"? If so, that's already slated for inclusion in CSS 3, IIRC. Not sure where offhand, but you can look around (perhaps in advanced layout?).

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
  16. Two questions by Dolda2000 · · Score: 2, Interesting

    1. What would you most like to change with CSS? That is, if you could go back in time and change one thing in the spec and have it reflected today, what would be the most important thing? 2. If you were allowed (perhaps by court order, which wouldn't be unthinkable) to force Microsoft to do one (1) change in Internet Explorer, what would that be?

    1. Re: Two questions by Dolda2000 · · Score: 5, Interesting
      Oops, messed up the formatting -- trying again:

      1. What would you most like to change with CSS? That is, if you could go back in time and change one thing in the spec and have it reflected today, what would be the most important thing?

      2. If you were allowed (perhaps by court order, which wouldn't be unthinkable) to force Microsoft to do one (1) change in Internet Explorer, what would that be?

      As a bonus question: What do you think of Slashdot's CSS? ;)

    2. Re: Two questions by Valdrax · · Score: 4, Funny

      Oops, messed up the formatting -- trying again...

      IRONY.

      --
      If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
    3. Re: Two questions by conJunk · · Score: 1

      question one is a fantastic question. i would love to see that answered

    4. Re: Two questions by piquadratCH · · Score: 1
      question one is a fantastic question. i would love to see that answered

      Well, good thing he already did (more or less):

      Emil Stenström:
      CSS got accepted as a recommendation and browsers started to implement the language. This was the real test to see if the specifications where clear enough. Are there sections or parts of the first specification that you wish that you had written differently or emphasized more?
      Håkon Wium Lie:
      All in all, I'm very happy with how CSS1 has stood the test of time. Compared to many other standards, there are few ugly compromises and not much feature creep. Looking back, I probably would have argued to drop a few features that havn't seen much use (first-letter and first-line), and I would have split a few overloaded properties ('display' and 'white-space' come to mind).

      http://friendlybit.com/css/interview-why-did-css-s ucceed/

    5. Re: Two questions by conJunk · · Score: 1

      :) fair play

    6. Re: Two questions by rar · · Score: 1

      If you were allowed (perhaps by court order, which wouldn't be unthinkable) to force Microsoft to do one (1) change in Internet Explorer, what would that be?

      main(int argc, char *argv[]) {
          exit(1); <----
      ....
      }
      :-)

  17. And another by linvir · · Score: 1, Interesting
    Perspective: Microsoft's forgotten monopoly
    By Hakon Wium Lie
    ....
    Microsoft's fonts are used to display most Web pages on the planet. Even Linux and Mac users, who often have fled Windows to avoid dependence on Microsoft, read most of their content using Microsoft fonts.
    How long since you last used Linux?
  18. Another question by stratjakt · · Score: 1

    Is there anything worthwhile to ask you, other than "Why did you invent CSS?" or "Why do you like OSS?", which wont ellicit the same canned responses we've all seen a thousand times before?

    --
    I don't need no instructions to know how to rock!!!!
  19. Not even close by Anonymous Coward · · Score: 0

    Håkon does not sound "more or less" like 'how come'. Not even close. The 'kon' parts sounds like 'con' (pro and con/swindle somebody). 'Hå' - well something like 'ho' in 'hope'.

  20. Pronounciation by nxcho · · Score: 1

    Actually I would pronounce Håkon Hawk-on, but thats just me

    --
    When asked why, the answer is almost always: "It's 2014".
    1. Re:Pronounciation by Anonymous Coward · · Score: 0

      I'd take his word for it...

      (Bonus note: the å in Norwegian is pronounced 'oh', so it at least seems like it should be hoe-kon)

    2. Re:pronounciation by databyss · · Score: 1

      "how come" is how he describes it, it wasn't an invention of the /. folks.

      If you have an issue with how he pronounces his name, you can take it up with him:

      http://people.opera.com/howcome/
      or
      howcome@opera.com

      --
      Hmmm witty sig or funny sig? Maybe elitest techy sig!
    3. Re:Pronounciation by pedalman · · Score: 1
      Actually I would pronounce HÃ¥kon Hawk-on, but thats just me
      That's just ASKING for a sputum joke to be inserted. Any takers?
      --
      Friends don't let friends line-dance.
    4. Re:Pronounciation by temcat · · Score: 1

      This is news to me. Always heard it like "aw".

  21. Included styles, aliases by Spy+der+Mann · · Score: 5, Interesting
    I always wanted to have "included" substyles or "aliases" in my CSS definition, to save redundancy.

    (For includes)
    .class1 { color:#ff0000; }
    .class2 { background-color:#ffffff; }
    .class3 { include:class1,class2;font-weight:bold; }
    (For aliases)
    @alias color1 #ff0000;
    @alias color2 #ffffff;
    @alias default_image url('/img/image1.jpg');
     
    .class1 { color:color1; }
    .class2 { background-image:default_image;background-color:co lor2; }
    This way we could change colors or images for a whole webpage by editing a reduced number of lines.

    Had you considered any of these ideas in the past? If so, why were they rejected?
    1. Re:Included styles, aliases by maino82 · · Score: 2, Interesting

      doesn't the "cascading" portion of "cascading style sheets" sort of take care of the includes for you? if you organize your styles right, there shouldn't really be a need for includes. i'm by no means a css expert, so please feel free to correct me if i'm wrong on this point.

      as far as aliases, i would also love to have something like that in css. it would make it much more easy to organize your styles.

    2. Re:Included styles, aliases by Spy+der+Mann · · Score: 1

      doesn't the "cascading" portion of "cascading style sheets" sort of take care of the includes for you? if you organize your styles right, there shouldn't really be a need for includes.


      I began thinking of these ideas when I studied multi-tier programming and separation of concerns. Even thoough CSS is presentation, it can still be organized in tiers, where the complicated stuff could be seen as the logic tier, and the aliases could be seen as the presentation tier.


      as far as aliases, i would also love to have something like that in css. it would make it much more easy to organize your styles.


      Actually, I think we could improve that idea a little further. Use "alias-groups", so we could switch themes by changing a single line. Change "alias" to "define", and use $ for the defines, like php variables.
      @define_group group1 {
        @define color1 #00cc00;
      }
      @define_group group2 {
        @define color1 #0000ff;
      }
      .class1 { use-define-group:group1;color:$color1; }
      Oh CSS Nirvana... how long till we reach thee?
    3. Re:Included styles, aliases by Anonymous Coward · · Score: 1, Interesting
      The former can be solved via something like this:
      .class1, .class3 { color:#ff0000; }
      .class2, .class3 { background-color:#ffffff; }
      .class3 { font-weight:bold; }
      The latter would be nice.
    4. Re:Included styles, aliases by Bragi+Ragnarson · · Score: 1

      self.shameless_ad do

      In Ruby on Rails there is allways RCSS (http://rcss.rubyforge.org/)

      There also exists original (but less powerfull) implementation of Server-side Constants written in PHP by Shaun Innman http://www.shauninman.com/plete/2005/08/css-ssc-qu ickie/

      end

      --
      Bragi Ragnarson Lawful Good (I change the law when it's not good)
    5. Re:Included styles, aliases by Ant+P. · · Score: 1

      I've also wanted to do that, but with the selectors instead. I could make my user stylesheets a few kb smaller that way.

      So here's my question: Any plans to add OOP-like syntax to CSS?

    6. Re:Included styles, aliases by ottffssent · · Score: 2, Informative

      You can achieve the same effect, albeit in a slightly different way.

      For example, rather than define a variable and use it in style declarations throughout the document, you simply define one property of multiple selectors at once.

      So rather than

      H1 {color: col1; other-styles-here}
      PRE {background-color: col1; other-styles-here}

      you would, instead, write

      H1, PRE {color: blah}
      H1 {other-styles-here}
      PRE {other-styles-here}

      Now, it's not quite as elegant since it would separate logically-related style groups by forcing together selectors that happen to share some property, rather than keeping selectors together based on semantic usage (say, all your navigation bar-related styles in one big group). But it does work.

      If you read Lie and Bos, it's clear they've put a lot of thought into why things are the way they are, and if it's difficult in some ways there's a good reason for it somewhere else. At least, that's been my experience.

    7. Re:Included styles, aliases by olliemaitland · · Score: 1

      I've always thought aliasing would be extremely useful, particularly when you are coding an application which requires skins.

    8. Re:Included styles, aliases by Carewolf · · Score: 1

      The reason it doesn't exists and is rejected whenever it is proposed (1 or 2 times a week) is purely dogmatic.
      They don't want to turn CSS into a programming language.

      Notice however the inconsistency with a property like quotes which is a variable...

  22. CSS Evolution! by eieken · · Score: 5, Interesting

    Is the wave of webpages designed completely in CSS what you intially intended when you came up with CSS? Do you see that changing? Is that good or bad?

    --
    Meet new people, and kill them.
    1. Re:CSS Evolution! by truthsearch · · Score: 4, Funny

      CSS Evolution

      CSS is about intelligent design, not evolution!

  23. pronounciation by Anonymous Coward · · Score: 0

    My name is Håkon, and it's certainly not pronounced "how come." (Nor is his, for that matter.) "Hawk - on" is closer but still bad.

  24. Where do you think standards would be without IE? by DittoBox · · Score: 1, Interesting

    Where do you think standards would be if Internet Explorer never was, or more the point: where would standards be if Microsoft actually tried to compete in an open market with Internet Explorer?

    --
    Good. Cheap. Fast. Pick Two.
  25. The great thing about standards is... by MagicM · · Score: 0, Redundant

    With every release of Opera, it seems that more and more standards/specifications are supported. How valuable is a standard when it isn't supported by 100% (or even 50%) of the browsers, and how frustrating is it to write a specification knowing that you're at the browser vendors' mercy?

  26. flamebait by Anonymous Coward · · Score: 0, Insightful

    Why is Opera complete and utter rubbish?

  27. Horizontally aligning multiple items by ars · · Score: 4, Interesting

    Why did you forget to include the ability horizontally align multiple items?

    It's the main thing that's missing from CSS. Was it too hard to implement or write syntax for?

    I'm thinking something like:

    horizontal-align-to: .

    eg: horizontal-align-to: #box middle top; Will align the top of this element to the middle of #box.

    The same for vertical align would be nice as well. For horizontal elements restrict it to elements within a parent (and allow ID's (or use class name) to be duplicated within different parents, to make repeating multiple rows easier). For vertical it must be set on a block level element.

    Alternate syntax:

    On the reference element: horizontal-align-to: #name_me position;
    On the to be aligned one: horizontal-align-from: #his_name position;

    So:
    horizontal-align-to: #rowman top;
    horizontal-align-from: #rowman middle;

    Will align the middle of the element, to the top of rowman.

    --
    -Ariel
    1. Re:Horizontally aligning multiple items by ars · · Score: 3, Interesting

      Replying to myself: I may have switched horizontal and vertical in my post. I can see it going either way, but probably switched makes more sense.

      Also the top middle bottom stuff, they should take an offset: eg: middle-10px; not sure of how to write that in good CSS sytax though. And baseline, and the rest of the aligners are legal as well.

      --
      -Ariel
  28. About Microsoft... by Chabil+Ha' · · Score: 5, Interesting

    With MS's next browser release (IE 7), you mentioned in other interviews that their decision to not supprt CSS2 was more a political decision than a mechanical one. Aside from their obvious desire to dominate the world, what politics do you think are in play that make them not want to conform to the standard, and what do you think would change that landscape so that they would have some initiative to fully support it?

    --
    We're all hypocrites. We all have hidden parts, it's the contrast between them that make us more a hypocrite than others
    1. Re:About Microsoft... by lmpeters · · Score: 1

      Perhaps the W3C standard should require that this block of code appear on the home pages of all W3C-compliant websites:

      <script language="Javascript" type="text/javascript">
      <!--
      if ( navigator.appName == "Microsoft Internet Explorer") {
            document.write("<p>Your web browser does not comply with current W3C standards. For the best viewing experience, <a href=\"http://www.mozilla.com\">get Mozilla Firefox</a> or any other standards-compliant web browser.</p>")
      }
      -->
      </script>

    2. Re:About Microsoft... by Anonymous Coward · · Score: 0

      Use of the "navigator" object doesn't comply with W3C standards either, you hypocrite. Please commit ritual suicide for your sins.

    3. Re:About Microsoft... by DjLizard · · Score: 1

      Not to mention that Firefox is not completely standards-compliant either. Well, okay, I mentioned it.

    4. Re:About Microsoft... by lmpeters · · Score: 1

      The script is meant as a joke. Do I need to explain the joke to you?

  29. equal column heights by crush · · Score: 3, Interesting

    Is the difficulty of producing a layout that consists of three or more columns of equal height justification for adding some new feature to the specification to make this easier?

    1. Re:equal column heights by Anonymous Coward · · Score: 0

      Actually, it's not hard if you use "overflow:hidden". Check out this page for an example.

    2. Re:equal column heights by Anonymous Coward · · Score: 0

      It's not difficult to have three or more colums of equal height if you follow the specifications (display: table-cell; ), its just that it isn't supported by the largest browser (IE) :(

    3. Re:equal column heights by Bogtha · · Score: 1

      Is the difficulty of producing a layout that consists of three or more columns of equal height justification for adding some new feature to the specification to make this easier?

      They added that feature to CSS over eight years ago. Nobody uses it because Internet Explorer hasn't caught up to 1998 yet. No, not even Internet Explorer 7.0 will handle display: table-cell. Maybe Internet Explorer 8.0 if we are lucky.

      What would you like them to do - add a duplicate feature and hope Microsoft implements it this time?

      --
      Bogtha Bogtha Bogtha
    4. Re:equal column heights by crush · · Score: 1

      Let me clarify: 3 or more columns without using a table. Tables are inappropriate for the display of non-tabular data for several reasons (maintainability, speed of loading being the primary ones).

    5. Re:equal column heights by Bogtha · · Score: 1

      You've mixed up HTML tables and CSS tables.

      HTML tables are a declaration that various pieces of information are related across multiple axes. CSS tables are a suggestion that various parts of the page should be laid out in a grid-like manner.

      One is a method of describing semantics, one is a presentation scheme. You are right in believing that HTML tables are inappropriate for the display of non-tabular data, but the criticisms you list don't apply to CSS tables because they are a totally different thing. The word "table" is being used in two different senses here.

      Try not to get hung up on the "tables are evil for layout" mantra. It doesn't apply to CSS tables, it never has, it was purely a criticism of HTML tables. Follow the link I provided, I'm not talking about HTML tables.

      --
      Bogtha Bogtha Bogtha
    6. Re:equal column heights by porneL · · Score: 1

      There is no such difficulty in CSS2 (recommendation since 1998). That problem is unique to Internet Explorer, which doesn't implement CSS2 (yet!)

    7. Re:equal column heights by NutscrapeSucks · · Score: 1

      It still feels like a cop-out or a kludge. As if they neglected a whole series of use-cases when designing CSS2 ... and then at the last minute just hacked in "DUH, HTML Tables Work, So Act Like A Table" rather than breaking out those features as seperate properties.

      (Note that there's a whole set of complicated display rules with HTML table cells that one might not want if they are just simply trying horizontally centering something.)

      In a way it's good that IE doesn't support this, because it's forced people to learn how to do columns and all sorts of other interesting tricks using only basic CSS-P. Otherwise sites would still be built on the table model, only using "display:table-cell" rather than "TD".

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    8. Re:equal column heights by crush · · Score: 1

      Good points and I have to admit that I was confused about the difference, so thanks, I've learnt something from you. [start whine]I've been dabbling with CSS and have been frustrated with the necessity to use e.g. javascript to dynamically resize divs to the height of the greatest column present. It just seems like a lot of repetitive work for something that is done very commonly. I understand the point that IE's non-compliance with standards effs things up for everyone else, but even so.... [end of whine] In any event, thanks for the informative post.

  30. New standards by iamsure · · Score: 4, Interesting

    In your work at Opera, you have clearly paved a path that includes going beyond the W3C standards. Whether it is WhatWG implementations, or new functionality specific to Opera (2dgame), you are pushing into new territory.

    Can you explain why W3C isn't sufficient, and why efforts at Opera to expand beyond the standards differ from Microsoft's embrace/extend model?

    1. Re:New standards by colmore · · Score: 1

      The only thing wrong with Microsoft's Embrace & Extend model is their failure to embrace.

      The extend part gave us XMLHttpRequest.

      MS are actually pretty good at innovation, they just don't do it very often.

      --
      In Capitalist America, bank robs you!
    2. Re:New standards by nursegirl · · Score: 1

      Also, why is Opera going beyond the W3C standards before it has properly implemented current W3C standards like bi-directional override? What is the path you are planning on taking to both catch up on implementing current standards while paving a path forward?

    3. Re:New standards by hkmwbz · · Score: 1

      That's self-explanatory. It's a fast moving industry.

      --
      Clever signature text goes here.
  31. Updating Standards by robizzle · · Score: 1

    It seems one the the largest struggles with css and web page layout desinging in general is getting it to work as you would expect in all browsers. Currently, if you want to add or change an existing standard, the only way is to hope that all the browsers correctly integrate the changes in a reasonable time frame. Have you ever looked into alternatives such that all the changes could be made in one place and from there all the browsers could 'sync' to the new standards. Maybe the standards could be coded as some sort of plugin that all browsers would be built around and that could be automatically updated easily?

    Is this feasable? Is this more feasable than expecting every browser (including Internet Explorer) to get things right?

  32. Vertical CSS Support by infestedsenses · · Score: 5, Insightful

    As a developer who works with CSS every day, I find one complication that continues to bother me in my daily work. Support for CSS has always been good on the horizontal scope, but vertical positioning has always been quite complicated. Alone the procedure to affix a footer to the bottom of a screen in dependance of the amount of content is unnecessarily difficult, spawning hackish solutions such as "footerStickAlt". Centering an object in the dead center of a page also requires strange procedures such as this one, which still aren't ideal (try making the viewport really small). The old table method provided much easier methods for this. What are your thoughts on this and do you see improvement following in future CSS revisions?

    1. Re:Vertical CSS Support by reebmmm · · Score: 1

      I'd like to respond to this. Vertical space, unlike the horizontal, is generally ill-defined and susceptible to many different interpretations. When people try to articulate what they want in the vertical space, they find that they actually don't know what they want.

      Your two examples are perfect demonstrations of this. In one case, you want "vertically centered on the view port" and in the other you want "Height to be at least the height of the viewport". To what element do you want vertical centering to apply? The viewport is most closely connected to the html element, and in reality, the two "hacks" you've mentioned use fairly straight-forward CSS once you realize what you're actually asking for.

      But this only solves a couple problems. It addresses blocks of known height in special situations but does not explain how to handle inline elements.

      You'll notice that even in the horizontal, certain requirements are taken to make it work (you need a width to use margin: 0 auto;). This works in the horizontal better because we know that text ought to wrap. Even the margin: 0 auto; trick uses either the width of the viewport or the width of some other element. Such things are more complicated in the vertical because we don't usually have good rules for those.

      I will agree that it seems that some sort of margin-top/bottom: auto; should have been permitted in the vertical sense. You can easily get the difference between the height of container and it's child. Though this quickly produces problems too since height: 100% (you've set an absolute height) on the html/body elements would not allow for overflowing without some extra work.

  33. Does CSS suck? by dattaway · · Score: 2, Interesting

    A collection of pages of Why CSS:

    http://www.decloak.com/Dev/CSSTables/CSS_Tables_16 .aspx

    "I pretty much want to kick whoever invented CSS in the nuts."

    1. Re:Does CSS suck? by MrP-(at+work) · · Score: 1

      That page is too ugly for me to read. Perhaps if they implemented some CSS it would make it easier to read?

      --
      [an error occurred while processing this directive]
    2. Re:Does CSS suck? by linvir · · Score: 1
      What crap.

      Plus, one should not forget to mention that they spent all that time redesigning their website without tables only to figure out that in order to get any of that neat stuff like, catalogs, forums, search results, product lists, address books, etc. you got to have tabular data,.i.e. TABLES.

      No, most of us are smart enough to know which tool to use for which job. It's not CSS's fault if one person happens not to be.

      Some of the links:

      macedition.com
      CSS sucks
      CSS doesn't work anywhere any way consistently so why bother pushing its use? Point what doesn't work, tell web browser companies what they are doing wrong and beg/plead/demand they fix it.

      Some idiot that can't tell the difference between a browser issue and a CSS issue.

      soulthought.org
      Okay...CSS sucks...well, browsers do, anyway...
      I spent the entire weekend wasting my time trying to get a CSS-based three-panel layout to work properly. I finally digressed to a two-panel layout, and now it looks okay in IE and sucks in Mozilla Firebird. If you people would follow the standards, this would be easy!!!!!!

      Someone who can tell the difference. Doesn't support the original site's flawed argument at all.

      nuketown.com
      When I re-designed Nuketown last year, I went to a CSS-only layout and I regret it; while the design works for the most part, there's really no way to make sure all three columns are automatically the same length (as is the case with tables). I have to resort to hacks

      Misses the point of CSS.

      fishbowl.pastiche.org
      Cascading Style-Sheets Suck
      I loathe CSS with a passion.

      Correction. I loathe the fact that every web browser supports a different, incompatible subset of CSS2. W3C standards were supposed to save us from having to test pages in every single browser under the sun, but we're travelling at high speed in the opposite direction.

      Someone who can tell the difference between the two issues but still wrote two titles damning CSS before acknowledging the real issue. Doesn't support any argument against CSS.

      globalcoordinate.com
      I'm sorry but I think that the designers of the CSS stylesheet spec should be shot. Why does simple layout have to such a black art?

      Hmmm.

      /* double, double, toil and trouble */
      #left {
      float: left; /* fire burn and caldron bubble */
      width: 15%;
      }
      /* macbeth! macbeth! macbeth! */
      #middle {
      margin: 0 16% 0 16%; /* to be replaced with eye of newt */
      }
      #right {
      float: right;
      width: 15%;
      }

      And finally, Barry:

      barry.pearson.name
      CSS positioning is so fragile that I can publish simple material, conforming to specifications published many years ago, and not have a clue about what people "out there" can see or not see. It isn't just about whether it has the intended colour. It might not appear at the right place on the page. It might not appear at all!

      That's a link to a browser bug, Barry you big failure.
      More from Barry:

      There is a mention of something resembling page layout in the CSS2 Recommendation. "9.6.1 Fixed positio

    3. Re:Does CSS suck? by Millennium · · Score: 1

      Nah; it needs more than just layout changes. It needs a guy who knows what he's talking about at the helm. Seriously; his sheer ignorance probably does more to promote CSS than most CSS advocates do with their knowledge.

    4. Re:Does CSS suck? by Bogtha · · Score: 1

      That page is a long-standing joke. Surely the way it's written tipped you off? It reads like an angry thirteen year-old was let on the computer without supervision. Try googling the web or Usenet for some of the rebuttals.

      --
      Bogtha Bogtha Bogtha
  34. Three column by SamSim · · Score: 0, Offtopic

    How do you do a three-column layout, with the central column coming first in the markup, and all three columns the same height, without using tables?

    1. Re:Three column by infestedsenses · · Score: 1
      How do you do a three-column layout, with the central column coming first in the markup, and all three columns the same height, without using tables?

      By using the One True Layout method.

    2. Re:Three column by SamSim · · Score: 1

      That involves extending all three columns to ludicrous heights (i.e. higher than any page on your site) so that they always invisibly overlap the bottom of your screen. That's a hack at best.

    3. Re:Three column by infestedsenses · · Score: 1

      I agree, it's quite a hack and not very elegant, but it does work for now. CSS needs much better support to do this kind of stuff without such trickery.

    4. Re:Three column by bcat24 · · Score: 1

      But that causes a ton of problems if you go the equal height route. Using the OTL along with faux columns is usually a decent substitute, though.

  35. Heres one by Timesprout · · Score: 1

    Does it piss you off that a site like /. that bangs on about standards and good design was so slow to adopt CSS

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
    1. Re:Heres one by redleaf8 · · Score: 1

      Or the fact that now that it's been implemented, there are still quirks. In IE6 on Windows XP, a lot of posts have the story starting down below the left sidebar instead of to the right of it.

    2. Re:Heres one by yo_tuco · · Score: 1

      "Or the fact that now that it's been implemented, there are still quirks. In IE6 on Windows XP"

      It is a challenge to write CSS+XHTML for IE6. Your CSS has to contain "hacks" because IE does not implement the box model correctly in addition to other things. So when you use a doc type of

      !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "


      for example, it kicks IE into a mode that will have you spending hours (if at all) trying to make look like all the other browers.

  36. Zen Garden by TuringTest · · Score: 1

    When you thought of CSS, did you have in mind something like the Zen Garden? What's your opinion of it, does it explore all of the possibilities of CSS?

    --
    Singularity: a belief in the "God" idea with the "demiurge" relation inverted.
  37. Misuse and Suggestions by lord_sarpedon · · Score: 5, Interesting

    Do you think that CSS is often misused? It seems to me that it is rarely used to define presentation in media other than the screen. As for my ideal stylesheet language... 1) Why must the layout be so linear? It seems to me that it would make more sense to have it operate closer to Autodesk Inventor, if you have ever used it, such that you set up whatever constraints (equal, parallel, etc) you see fit and the agent displaying the content finds a suitable solution. As an example, the login div must be equal width as the sidebar div, the sidebar div is at the left of the screen, the navbar is at the top of the screen and above the sidebar, and the content div is below the navbar and to the right of the sidebar. If everything is in a box, it would make sense to use other boxes as a reference point, rather than the screen. Pixels and percentages are nice and all, but not altogether natural. And pixels, while tempting, often don't cater to different resolutions. 2) Why would a spec for something that needs to be pixel-precise not come with an example implementation? 3) Shouldn't you be able to affect the document tree in a small way? If you are truly separating content and presentation, then why must I change the content to get the effect I want? I do this with XML + XSL + CSS, but just being able to add a div or image here and there would be nice...

    --
    "Strangers have the best candy" -Me
  38. bottom:0px problems by izam_oron · · Score: 1
    Why does the CSS code
    position:absolute; bottom:0px;
    position the object at the bottom of the currently viewable area of the page, instead of the absolute bottom where it should be positioned?
    1. Re:bottom:0px problems by dolphinling · · Score: 1

      Because if the default container is the viewport, you can still make the page a container, but if the default container is the page, you can't make the viewport a container.

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
  39. Should CSS be a religion? by DysenteryInTheRanks · · Score: 4, Interesting

    I have mod privs but no one else is asking this question, at least not in a respectful manner, so here goes:

    I understand the impetus behind CSS, and think it has brought some nifty things to the Web, particularly in terms of integrating with the DOM and thus helping usher in all the AJAXy goodness we're seeing lately.

    But CSS also seems to have spawned an anti-HTML jihad movement of people who rail against simple but effective HTML markup, including for example the B, I and FONT tags and the TABLE. Many people seem to make the principle of separating presentation from content a religious issue.

    I learned HTML in 1994 by using the View Source command in Mosaic and Netscape (beta). The simplicity of the tags made it very easy. I could keep the basic structure of a doc in my head: "<html><head><title>Home Page</title></head><body><p>Hello, <b>world</b>!</body></html>"

    For all the strenghts of CSS+XHTML, they are significantly more complicated to learn than basic HTML.

    Do you worry that CSS is scaring off new Web writers, espeically since basic HTML is increasingly deprecated among Web developers?

    1. Re:Should CSS be a religion? by bcat24 · · Score: 1

      It's still that easy. There's nothing wrong with B and I tags. There's also nothing wrong with using tables *for tabular data*. You just shouldn't use tables for stuff like columns.

      In fact, pages using CSS layouts usually have cleaner HTML than pages with 90's style table-based layouts.

    2. Re:Should CSS be a religion? by Bogtha · · Score: 1

      Do you worry that CSS is scaring off new Web writers

      Why would it scare off new web writers? I can see a case for it scaring off newbie designers but CSS actually makes it easier to write for the web, because you don't have to worry about the design so much when you are writing. In fact, surely the immense popularity of weblogs is evidence that writing for the web is more popular than ever before? It certainly doesn't look like anybody is being scared off.

      --
      Bogtha Bogtha Bogtha
    3. Re:Should CSS be a religion? by T-Ranger · · Score: 1

      The thing is that serious web developers dont write XHTML. They write programms that write HTML. Or they write CSS stylesheets to manage the display of XHTML written by programms, which are written by programmers.

    4. Re:Should CSS be a religion? by Anonymous Coward · · Score: 0

      "The thing is that serious web developers dont write XHTML. They write programms that write HTML."

      Is that because a serious commercial web developer must support IE? And IE's support for CSS+XHTML, to be kind, sucks and is waaaay out of date thereby making it almost not practical to do XHTML?

    5. Re:Should CSS be a religion? by pile0nades · · Score: 1
      You just shouldn't use tables for stuff like columns.
      Why, do they not work right? Is there some IE quirk or bug I should worry about? Will children die if I use them? I just made a simple page using tables for equal height columns in about 10 minutes, and it works the same in Firefox, Opera and IE. All 3 columns end at exactly the same place. There is only one table in the document, and no spacer gifs. It is styled using CSS. The document uses a strict XHTML doctype, and validates as such. I never understood why using tables to layout a page was considered a bad thing.
    6. Re:Should CSS be a religion? by pile0nades · · Score: 1

      Forgot to link the page.

    7. Re:Should CSS be a religion? by MenTaLguY · · Score: 1

      Primarily because it confuses tools that try to suss out the structure of the document by looking at tag types and then make decisions based on that (HTML-to-audio conversions can get really boned by overuse of tables, for example -- algorithms for sensible renderings of tables-as-tabular data can really mess up when presented with tables that aren't).

      It's probably best to think of this as a conflict between people who think HTML tags should have inherent meanings (it opens up a lot of opportunities for writing useful software, and it was the original idea with HTML anyway), and people who simply choose HTML tags to achieve particular visual effects (because that's all that was possible for a long time). CSS only comes into this because it fixes that latter problem, so the former group has largely pinned their hopes on it for a resolution to the conflict.

      Anyway, CSS2 does offer a solution for the table case too[1]-- you can assign the layout behaviors of tables, table rows, and table cells to any element. In principle you could do table-style layouts using only CSS and DIVs. Too bad browsers don't uniformly support that part of CSS. So, sometimes using tables for layout is a necessary evil. Just be aware of the downside. At least support for CSS tables has improved markedly in recent browsers, so perhaps they'll be a real option soon.

      [1] http://www.w3.org/TR/CSS2/tables.html#q2

      --

      DNA just wants to be free...
    8. Re:Should CSS be a religion? by pile0nades · · Score: 1

      Oh yeah, forgot about that. Its just that many div+css advocacy pages can sound kind of preachy sometimes.

  40. Because of America harbors ursine evil. by Valdrax · · Score: 4, Funny

    Free software is destroying american jobs. Why do you hate america?

    Because America is known to harbor bears, godless killing machines without a soul that are a threat to free men everywhere. If you harbor bears you are bears.

    Put a stop to America's bearrorism today.

    --
    If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
    1. Re:Because of America harbors ursine evil. by sharkey · · Score: 1

      Won't somebody PLEASE think of the children!

      --

      --
      "Outlook not so good." That magic 8-ball knows everything! I'll ask about Exchange Server next.
    2. Re:Because of America harbors ursine evil. by Valdrax · · Score: 1, Offtopic

      Won't somebody PLEASE think of the children!

      But not the Cub Scouts. They're bear funders and sympathizers. America has no need of their brand of extremists.

      --
      If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
    3. Re:Because of America harbors ursine evil. by Anonymous Coward · · Score: 0

      No only do we harbor them. Our constitution gives us the right to arm them!

    4. Re:Because of America harbors ursine evil. by Millenniumman · · Score: 4, Funny

      No, it gives us the right to their arms.

      --
      Stupidity is like nuclear power, it can be used for good or evil. And you don't want to get any on you.
    5. Re:Because of America harbors ursine evil. by Cheapy · · Score: 1

      What do you have against Chicago?

      --
      Would you kindly mod me +1 insightful?
    6. Re:Because of America harbors ursine evil. by jrockway · · Score: 2, Funny

      Daley.

      --
      My other car is first.
  41. Usability Testing by MonsoonDawn · · Score: 2, Interesting

    Was there any usability testing with developers performed as part of the design process? If so, how did the testing guide development of the specification? One of the complaints often heard from both critics and fans is that CSS is very difficult to learn and read. In particular the complex rules governing the Cascade are often a source of problems for even experienced developers. Another instance is the often extreme difficulty and skill required to achieve layouts that were easy and common in pre-CSS days.

  42. HTML5 by booch · · Score: 2, Interesting

    Do you think HTML 5 (from the WHAT WG) will have a better chance of being accepted by the browser vendors than XHTML 2.0 or whatever else comes from the W3C? (I suppose being accepted by the dominant IE would be the most important.) As a more general question, how can we best create new standards that allow backward and forward compatibility? It seems that current browsers handle current HTML versions as special cases, by looking at the HTML version string. It seems that this would break the ability for these browsers to treat HTML 5 as if it were HTML 4.

    --
    Software sucks. Open Source sucks less.
    1. Re:HTML5 by Anonymous Coward · · Score: 0

      Mod parent up, question deserves to be asked.

      (Stinks that this is at the bottom of page 2, where fewer mods will see it.)

  43. How come, we um, lie? by Anonymous Coward · · Score: 0

    How come, we um, lie?

  44. CSS Variables by yo_tuco · · Score: 1

    It would be nice if I could assign, say, a color to a variable in CSS so to change the color I would only need to do it one place and have it propogate through out the style sheet, for example. Same goes for other attributes like width, spacing, etc. Is there any plan for that in the future?

    1. Re:CSS Variables by sugarmotor · · Score: 1

      And loops please, and if and else, and inheritance ..... and File IO and sooner or later we can run emacs inside of CSS :)

      --
      http://stephan.sugarmotor.org
  45. {Gack.} by Rob+T+Firefly · · Score: 4, Interesting

    Why the curly brackets? Those things get on my damn nerves.

    1. Re:{Gack.} by markild · · Score: 1
      Why the curly brackets? Those things get on my damn nerves.

      Tried any good programming language lately?
      --
      Scully: Should we arrest David Copperfield?
      Mulder: Yes we should, but not for this.
    2. Re:{Gack.} by addaon · · Score: 1

      Yes, but smalltalk uses [] and (), not {}.

      --

      I've had this sig for three days.
    3. Re:{Gack.} by Z0mb1eman · · Score: 1

      Best. Question. Ever.

      --
      ClutterMe.com - easiest site creation on the Net. Just click and type.
    4. Re:{Gack.} by WilliamSChips · · Score: 1

      Yes, Python is the best programming language.

      --
      Please, for the good of Humanity, vote Obama.
  46. why not XML? by slashdot.org · · Score: 1

    Simple question (hopefully simple answer ;-)): why did you not use XML?

    1. Re:why not XML? by Dolda2000 · · Score: 1

      I'll give my simple answer: Why ever should he have? In which possible way would using an XML dialect have made anything about CSS better? In contrast, not using XML makes the CSS syntax much terser than it would have been with XML.

    2. Re:why not XML? by bcat24 · · Score: 1

      Probably because XML was being developed at about the same time as CSS. (AFAIK)

    3. Re:why not XML? by haroldag · · Score: 1
    4. Re:why not XML? by Anonymous Coward · · Score: 0

      It somehow seems inappropriate to have a 'List of tables'...

    5. Re:why not XML? by slashdot.org · · Score: 1

      In which possible way would using an XML dialect have made anything about CSS better?

      With HTML transitioning to valid XML, we could have ended up with one parser. For the W3C consortium it would have been a "eating your own dog-food" situation. It would have been an example of why we should use XML (and schemas, which would validate the XCSS...)

  47. Acid2 test? by bigpat · · Score: 2, Insightful

    Do you think the so called Acid2 test is a useful test for determing browser compliance with standards and if so then why? If it isn't a good test then is there a simple alternate test that could be more useful for browser developers?

    For your reference: http://www.webstandards.org/files/acid2/test.html

    1. Re:Acid2 test? by Chabil+Ha' · · Score: 1

      Ya know, I thought to myself, surely IE fails miserably and Firefox will shine. I decided to try it out and sure enough, IE disgustingly fails. However, my Firefox 1.5.0.4 doesn't do much better. In fact, in Firefox I hadn't a clue what it was trying to render until I clicked on the reference page.

      Suddenly my confidence is wavering in Firefox's standards compliance.

      --
      We're all hypocrites. We all have hidden parts, it's the contrast between them that make us more a hypocrite than others
    2. Re:Acid2 test? by Pink+Tinkletini · · Score: 1

      Firefox is far from the most standards-compliant browser out there. For example, Safari aces the Acid2 test (though I personally doubt just how much Acid2 really matters). More important is Gecko's continuing lack of support for things like display: inline-block and text-shadow, both of which Safari handles per spec.

      Firefox is also really ugly.

  48. Any plans by JediTrainer · · Score: 1

    Are there any plans to re-release the Bork edition?

    I for one enjoyed that Valentine's day treat quite a bit!

    --

    You can accomplish anything you set your mind to. The impossible just takes a little longer.
    1. Re:Any plans by Nimrangul · · Score: 1

      Indeed, vhee zeey furst releesed it I hed huped zeey vuoold incloode-a zee edfunced trunsleshun tuul in footoore-a releeses es a tuggle-a, leeke-a zee Oothur mude-a, Shoo imeges oor Feet tu veendoo veedt tuggles Oopera hes, thet vey uny seete-a cuoold be-a b0rked.

      Bork, Bork, Bork!

      --
      I'm sick of following my dreams - I'm just going to ask them where they're going and hook up with them later.
  49. More programmically approaches of CSS by Moo0 · · Score: 3, Interesting

    if you have 2 elements, eg ol#a and span#b, you need to double your selectors:
    ol#a *:first-child a:hover + dd, span#b *:first-child a:hover + dd { ... }

    Why is there no 'grouping' of selectors such as:
    ol#a, span#b { *:first-child a:hover + dd { ... } }

    And of course, there are more possibilities to greatly improve the maintainability of CSS-files; being able to define variables, or inline-calculations (eg. border-width: @var - 0.5em;

    Have they not been included to keep CSS simple, or ... ?

  50. XML? by SnapShot · · Score: 1

    Question 1:

    Was there a reason that XML wasn't chosen as the format for CSS? There's a million parsers for it and it's heirarchical so that it would be logical to handle the nested selectors, classes, and identifiers.

    It's hard for me to remember back to 1994 but it seems that XML would have been an option even at that early date.

    Question 2:

    Did you ever think of dividing CSS into two aspects.

    1. CSS-Presentation that would have focused on the font, color, backgrounds, border, text, and other "display" aspects of CSS
    2. CSS-Layout that would have focused on the layout, margins, padding, and position aspects of CSS.

    --
    Waltz, nymph, for quick jigs vex Bud.
  51. Since Slashdot started with CSS by Bromskloss · · Score: 1

    ...I can finally view it in my, somewhat old, browser Cyberdog! Ah, never heard of that one, did you? Not that it can do CSS (or Javascript, or frames, or PNG, ...) oh no, but it could neither correctly interpret the color information Slashdot had in it's HTML, which resulted in a completely black page. :-( But now I'm happy again! :-)

    --
    Swedish plasma phys. PhD student; MSc EE; knows maths, programming, electronics; finance interest; seeks opportunities
  52. Question for /. by Zaphod2016 · · Score: 1

    How come y'all hawk on this guys name so much?

    C'mon guys, you know grade school was hard enough for this fella.

    1. Re:Question for /. by markild · · Score: 2, Interesting
      C'mon guys, you know grade school was hard enough for this fella.

      I doubt it ;)

      As you can see from this graph, it's one of the most common names in Norway. (numbers on the left in percent)
      --
      Scully: Should we arrest David Copperfield?
      Mulder: Yes we should, but not for this.
  53. Heh... by Anonymous Coward · · Score: 0

    Lie proposed the Acid2 test in the first place. I'd say he's heard of it ;-)

    http://news.com.com/The+Acid2+challenge+to+Microso ft/2010-1032_3-5618723.html

  54. mixing inline and block elements by BlueStraggler · · Score: 3, Interesting

    Should it be possible to freely mix inline and block elements? In particular, place block elements inside inline elements? Basic HTML says no. CSS2 is vague, especially considering that an element's block/inline property is variable. Most browsers seem to side with HTML. But, coming from the TeX world, where \hbox and \vbox can be freely mixed to achieve any layout you like, I can see no compelling reason for prohibiting it. HTML/CSS can come across as hopelessly broken when you know that something analogous has been done for ages, and practically perfectly, elsewhere. Is the problem here with CSS, HTML, the browsers, or me?

  55. If you love free software by Anonymous Coward · · Score: 0

    ...why do you work at Opera?

  56. I need validation in my life by Anonymous Coward · · Score: 1, Insightful
  57. CSS 3.0 by RetroGeek · · Score: 1

    Given that not all browsers support version 2, will version 3 be held back until they do?

    Why have a new formatting syntax when the current browsers do not support things like:

    @font-face {
    font-family: "Robson Celtic";
    src: url("http://site/fonts/rob-celt")
    }

    and:

    page-break-inside: avoid;

    in paged media (think hard copy and rows being split across pages, usually with half a line of text on each page)

    If not, do you have a plan to persuade browser developers to comply with the existing CSS 2 BEFORE you add their requested bells and whistles to version 3?

    --

    - - - - - - - - - - -
    I am a programmer. I am paid to produce syntax not grammar. Deal with it.
  58. so, cascading style sheets... by Arthur+B. · · Score: 1

    how come?

    --
    \u262D = \u5350
  59. Microsoft Internet Explorer by caudron · · Score: 1

    Do you ever have to choke down the urge to punch Bill Gates straight in the mouth for what he's done to your creation?

    I mean, I know I do, and CSS isn't my baby.

    Tom Caudron
    http://tom.digitalelite.com/ (why yes, it is a CSS-based 3-column layout!)

    --
    -Tom
  60. better text handling by hobo+sapiens · · Score: 1

    Why are aspects of text handling like word wrapping not adequately addressed by CSS2? And yes, I know that IE supports word-wrap, but that is a proprietary attribute (wish MS would have instead spent time implementing the standards correctly, you know?) Are there plans to improve text handling with CSS?

    I guess a related question would be: is CSS getting out of scope? As web developers, we well know how a nice simple idea can get twisted and expanded to where it no longer resembles the original intention. Is CSS getting to that point or did you anticipate it getting so massive?

    --
    blah blah blah
    1. Re:better text handling by dolphinling · · Score: 1

      Why are aspects of text handling like word wrapping not adequately addressed by CSS2? And yes, I know that IE supports word-wrap, but that is a proprietary attribute (wish MS would have instead spent time implementing the standards correctly, you know?) Are there plans to improve text handling with CSS?

      Yes, there are. http://www.w3.org/Style/CSS/current-work, see Text Layout. Note that this is incredibly hard to spec, because doing so properly for all languages requires knowledge of all languages. And not just basic knowlege, but detailed knowledge about the writing systems. The people writing this deserve huge amounts of respect.

      If you're iterested, see a post by one of the writers (temporarily down, so use the google cache).

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
    2. Re:better text handling by hobo+sapiens · · Score: 1

      Thanks for the reply. I guess I was talking about CSS2, though not readily apparent from my post, since that is just now being somewhat implemented by browser makers (looking at you, IE.) CSS3 is nice and all, but will be largely academic until well supported by browsers, and by browsers, I mean IE (shame on you, IE). Judging by the timeliness of IE's correct adoption of CSS2 that will take place sometime after the conclusion of the cenezoic era.

      Having said all that, this is good information that you have shared with me, so I do thank you for the links. I can only imagine the complexities involved with handling this text, so yeah, whoever is working on it has to be pretty sharp.

      I will bookmark these for all of my post-modern civilization web dev. :)

      --
      blah blah blah
  61. Form vs. Content by menace3society · · Score: 1

    Cascading style sheets are a great idea... if you can cleanly separate form from content. Certainly, this is nowhere more true than in writing, as things like the poetry of e.e. cummings, hieroglyphic inscription, and the calligraphic writings of the ancient Chinese are all examples of where the medium becomes the message with profound results. While most attempts at creating genuine multimedia art over the internet still have their tongues firmly planted in-cheek (ytmnd springs to mind), I'd suspect that within a generation (if not a generation of internet time), HTML-/XML-based art will take off in a major way. In what ways do you see the informatic schema of separating data from the presentation thereof running into the artistic schema of holism and integrating all aspects of presentation?

  62. Definition of pixel by Sara+Chan · · Score: 5, Interesting

    The word pixel meant "picture element", but CSS redefined it to mean something quite different (a particular subtended angle of view). This causes confusion: CSS pixels are not pixels. (Indeed, I have seen misinformed comments on Slashdot due to that confusion.)

    My question is this: why call the subtended angle a "pixel", instead of something else (e.g. "subangle")? If CSS wanted to use the subtended angle for something, that is fine, but calling it a pixel seems to follow the approach of Humpty Dumpty—"When I use a word, it means just what I choose it to mean".

    1. Re:Definition of pixel by wootest · · Score: 0

      Maybe because introducing a unit that *shouldn't* scale along with the rest of the page (and the rest of the units) would complicate the spec even more? Look at how IE6 implements the pixel unit in conjunction with scaling. It's not consistent and it's not pretty.

      An absolute unit does make sure that, say, a sidebar stays a certain width when scaled up, I'll give you that. But it also hinders the sidebar to move beyond stamp-sized in high pixel density displays, which for all I know could have been in the marketplace in droves by now hadn't there still been big software issues with regards to scaling.

      I'd say that taking all this into account, it would be a good idea to have a unit that at its baseline occupies one pixel, and it logically follows that it would be called a pixel.

  63. CSS question by oglueck · · Score: 1

    CSS claims to be a language for layouting HTML. Why are the layouting capabilities so limited then? Were any graphical designers / people with layouting experience actually involved in the development of the standard?

    To illustrate my point of view: Positioning of block elements in CSS can only be absolute (which is not suitable for arbitrary size screens), relative to immediately preceding or following elements (which is not very flexible) or floating (which is also not very flexible as it only affects subsequent elements). This makes the order of the HTML elements significant. As a consequence HTML must still be modified when changing the design. Doesn't this defeat the purpose of CSS?

    1. Re:CSS question by bcat24 · · Score: 1

      One thing to keep in mind is that CSS wasn't originally designed for fancy multi-column layouts. Floats, one of the most powerful parts of CSS, were supposed to be used to flow text around images (like the align attribute of the IMG tag). Modern web development pushs CSS far beyond it's original purpose, which is a reason why we need CSS 3.

  64. Triplicates? by bcat24 · · Score: 1

    Duplicates? On Slashdot? Surely you jest, sir!!

    1. Re:Triplicates? by r3m0t · · Score: 1

      Duplicates? On Slashdot? Surely you jest, sir!!!

  65. How about CSS Variables? by ericrank · · Score: 1

    I've always wanted to declare variables within CSS. Using variables to define color values would make my life so much better. Are CSS variables something that's on the roadmap? And if not, why not?

  66. The only question that matters by Anonymous Coward · · Score: 0

    Do you play Terrorists or Counter Terrorists?

  67. AT/Browser Integraiton by conJunk · · Score: 1

    CSS2 has some very cool properties for interfacing with Assistive Technology (AT) such as JAWS and WebEyes.

    For unfamiliar readers, the speak selector could be used with amazing effectiveness, eg:

    .initalism {
    speak:spell-out;
    }

    <abbr title="Strucuted Query Language">SQL</abbr> is very popular in the <abbr title="United States" class="initialism">US</abbr>

    Unfortunately, implementation of these features does not seem to be a high priority for AT manufacturers. What efforts, if any, do you know of to get features like these incorporated into future versions of AT products?

  68. CSS for table columns? by oneiros27 · · Score: 4, Interesting

    Why isn't there any easy way to style a table column in CSS?

    If you're serving legitimate, tabular data, and you want to right-align column #3 (normal for numerical data), you either have to apply a class to each cell, use javascript to apply it after the fact, or use hacks like:

    #tableid td+td+td { text-align: right } /* right align col 3 */
    #tableid td+td+td+td { text-align: inherit } /* stop right align at col 4 */

    Which work, but are difficult to maintain when you get 10+ columns, and don't try to automatically re-arrange columns with javascript.

    Why can't we just place styles on a <col> or <colgroup>, and have it cascade down?

    --
    Build it, and they will come^Hplain.
    1. Re:CSS for table columns? by impala_sc · · Score: 1

      ABSOLUTELY!
      We really need a way to format columns in tables. Not because I want to use tables for layout, but because I want to show tabular data in a table! Maybe one column content needs to be red, or bold, or whatever. DUH! Without this, tables are very useless.

      I understand the root of the problem is the XHTML DOM where everything has one and only one parent for inheritence. Well, tables are fundamentally two dimensional structures and the XHTML DOM just doesn't allow for this. In the XHTML DOM, a table is structurally no different than a nested list.

      CSS is dependent on the DOM, and unless someone fixes the DOM, any implementation done in pure CSS to fix this would likely be a hack subject to breaking.

      SOMEONE PLEASE FIX IT! I don't care if it does violate some principle of the DOM.

    2. Re:CSS for table columns? by Dracos · · Score: 1

      There already is a solution in CSS3: the nth-child pseudo-class

    3. Re:CSS for table columns? by Snover · · Score: 2, Informative

      Why can't we just place styles on a <col> or <colgroup>, and have it cascade down?

      You can (<col class="whatever">). However, the instant you add classes to any of the rows or cells in the table, it stops working, so it's not very useful.

      --

      [insert witty comment here]
    4. Re:CSS for table columns? by dolphinling · · Score: 1

      Actually, IIRC there's a better solution coming, one designed specifically for tables (because nth-child() can fail if there are any multi-row/column cells).

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
    5. Re:CSS for table columns? by dolphinling · · Score: 1

      Because of the way inheritance works. See http://ln.hixie.ch/?start=1070385285&count=1.

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
  69. CSS and complexity by walnut_tree · · Score: 1

    What are your thoughts on the ease of use of CSS? Much has been written about the elegant simplicity of CSS. This is certainly true for simple layouts. In my opinion though, CSS begins to lose that elegance and simplicity for more complex layouts. It feels difficult to use, confusing and unwieldy. One might think this is inevitable for more complex page designs, but what are your thoughts? Do you feel that CSS remains easy to use for complex layouts?

  70. syntax choide for "important" by Anonymous Coward · · Score: 0

    Why did you choose to use the syntax !important to reflect more importance in a declaration? For a programmer it seems that !important reads naturally as NOT important.

  71. How did your initial proposal end up so broken? by Anonymous Coward · · Score: 0
    I see from your initial proposal that you had rules like:
    DISPLAY_HEIGHT > 30cm ? http://nyt.com/style : http://lemonde.fr/style
    I'd kill for that today. What happened to it?
    Why is there no #define statement?
    Why is there no way of resetting the browser's defaults?
    Why does your own page resort to using a table for some of it's layout?
  72. CSS Refactoring Tools? by jonathansamuel · · Score: 1

    Are there any CSS refactoring tools that you can recommend? I am looking for something that will draw the repeated attribute values out of my HTML and create a CSS stylesheet that replaces it.

    --

    Marjo Wycam, Master of the Programming Arts
  73. Consequences of CSS by Gothmolly · · Score: 1

    Did you ever imagine that people would (ab)use CSS to make all websites look alike, with faggy rounded edges and shitty fonts, using shaded and/or gradient backgrounds for everything?

    --
    I want to delete my account but Slashdot doesn't allow it.
  74. One badly needed standard is by melted · · Score: 1

    One badly needed standard is CSS-like localization language, with fallback sequences etc. I want to be able to include a list of strings into my page and specify that if there's no, say, Spanish string, English must be used.

    E.g. create a tag, add "loc" attribute to input tags and create *.loc files with loc strings. Include them into the page like you include CSS today, have browser choose depending on locale. Substitute the strings on page render. Allow people to select different localization on the fly like they select custom stylesheets today. Allow them to create custom localizations, too.

    I simply fail to see why localization has to happen on the server.

    1. Re:One badly needed standard is by melted · · Score: 1

      Create a tag, that is.

  75. Clearing by MrPanda · · Score: 1

    First of all, a lot of the problems people encounter in CSS are simply misunderstandings because of strange browser implementations. Nothing will help you more than actually reading the background materials and understanding what each piece of terminology really means. Once you grasp the overall concepts you will find that browser compatibility isn't just a lofty ideal.

    Oh and to center you just put text-align:center on the container and margin:0 auto;text-align:left on the element you wish to center. It's really not that tough ;)

    Having said all that, how in the world do you explain the lack of proper clearing? I think, at this point, it is obvious to anyone that has ever implemented a holly hack(usually not a good idea, btw) or a fixer class that an element should be able to clear the floating of elements within itself. This lack of internal clearing is one of the most obviously missing pieces from the CSS system. And so my question is, how could smart people forget to put something so necessary into the framework?(I hope there is a cool story involving some sort of conspiracy.)

  76. Quirks mode by Dracos · · Score: 1

    In my opinion, quirks mode is the number one obstacle to web standards.

    Arguably, quirks mode was conceived as a way for page authors to still be able to view their content if their markup wasn't valid. However, it seems to have evolved into an excuse not to create valid markup of any sort. The "it looks fine, I'm done" mentality of authors.

    What are your thoughts on quirks mode, how it affects CSS, and how can the web escape the legacy need for it?

  77. Re:bottom:0px problems (not a problem) by Laebshade · · Score: 1

    It's because you're using the wrong position type. Use "fixed" instead.

  78. How do we get CSS *IMPLEMENTED*? by fm6 · · Score: 1

    The CSS specs are full of totally cool features that I can't use because IE doesn't implement them, or doesn't implement them correctly. (Not that Firefox is perfect either, but with 10% of the market, it doesn't dictate what people can and can't use.) What can we do to get browser implementors, or rather Microsoft, to support CSS properly?

  79. Threat #1? by mobby_6kl · · Score: 1
  80. Why not XML ? by pupeno · · Score: 1

    Was there any particular reason to invent a brand new format for codding styling information instead of just using an XML-sublanguage ?

    --
    Pupeno
  81. Style sheets server by Anonymous Coward · · Score: 0

    If I remember well, CSS were created with the idea that style sheets could be provided by experts on central sites and shared by many sites, thus making the Web navigation typographically beautiful, consistent, fast, and user-configurable. It was very interesting and ambitious goals. But nothing like that happened. I played for a few years with MSIE 4 and 5 user style sheets, but even the simplest and most basic user configurations - like disallowing rendering of tiny and unredeable fonts - had to be hardcoded in the (Mozilla) browser (with Minimum font size) to override all the complicated cascading rules and work consistently well. Do you think that 10 years late CSS can still become a great technology, or will it always remain just syntax to write styling properties? Do you think that a new technology could replace CSS in 5 or 10 years and achieve the "original goals"?

  82. How to specify CSS version? by Bromskloss · · Score: 1

    Is there a way to specify the version of CSS that a certain CSS file follows? The W3C validator, for some reason, defaults to 2.0 instead of 2.1, and when I use features that exist only in 2.1 I have to specify the version in the URL to the validator. That is, instead of http://jigsaw.w3.org/css-validator/check/referer I have to do http://jigsaw.w3.org/css-validator/check/referer?p rofile=css21. That is not neat. It should be able to extract that information itself. (Go on, by the way, check the links to see how well Slashdot is doing in the validation.)

    Equally non-neat is that, when reading a CSS file, one has to _guess_ the character set (!) to be able to read the "@charset" rule. At lest that's what I've heard. Is it true? Did _you_ come up with that? Have thou yet punished thyself? Do you want some help with that (the punishment)? Of course, the whole charset rule contains only ASCII characters, which is compatible with many (but not all) other encodings. Still, this is not what you would expect from a W3C standard.

    --
    Swedish plasma phys. PhD student; MSc EE; knows maths, programming, electronics; finance interest; seeks opportunities
  83. The slow adaption of CSS by GrievousMistake · · Score: 1

    Do you think that the design of CSS must take some of the blame for the slow adaption of first CSS and since CSS2? Imperical evidence seem to show that CSS is simply hard to get right. Was too much ease of implementation sacrificed to make it easy to design and read CSS files, thus prompting the lack of support that complicates the use of CSS today?

    --
    In a fair world, refrigerators would make electricity.
  84. Constants by Rui+Lopes · · Score: 1
    It has been throughfully discussed before on the CSS mailing lists, however let me plug it again here. I've written a small essay about this at my blog, but it goes a bit like this: When will CSS have primitives for supporting the declaration of constants? It would be great to do something like:
    @const name: value;
    and perform a mere string replacement preprocessing step. Sure, calculated values would be great, but I would go that far on this feature. Wouldn't it be great to do stuff like: Let's explore constants further with a more practical example:
    @const MAIN: #48f;
    @const SECONDARY: #f84;
    @const SHADY: #ddd;
    @const BACK: #fff;
    And then, use them all over the place:
    body {
    background-color: BACK;
    color: MAIN;
    }

    h1, h2, h3 {
    color: SECONDARY;
    }

    .entry {
    border: 1px solid SHADY;
    background-color: MAIN;
    color: BACK;
    }
    Also, joining @import and @const together leverage multiple device constant definitions (like the hypothetical scenario described previously). Example:
    /* constants.css */
    @const MAIN: #48f;
    @const SECONDARY: #f84;
    @const SHADY: #ddd;
    @const BACK: #fff;

    /* screen.css */
    @import url(constants.css);
    ...

    /* print.css */
    @import url(constants.css);
    ...

    /* handheld.css */
    @import url(constants.css);
    Some arguments against this position stand for proper tool support such as IDEs or preprocessors. However, CSS syntax leans towards an ease-of-use stylesheet creation/maintenance process, done by hand... Why not adding just one small keyword to the syntax? please? :)
    --
    var sig = function() { sig(); }
  85. Pronounciation by clacke · · Score: 1

    Actually it's pronounced more like WhoreCon. Thats an å, not an a.

  86. CSS and columns by faust2097 · · Score: 1

    It's obvious that you know a lot about type from your writings on the subject but I have a question specific to design implementation:

    Why is it so difficult to do multicolumn layouts in CSS? Layout controls overall in CSS2 are primitive at best and require extensive tweaking for satisfactory results. Was having weak layout control a design decision or just seen as outside the scope of the project? This seems to me to be one of the most fundamental reuirements for web [or any] design and yet it's still a pretty kludgy solution even today. Aligning and preventing strange overlap and overflow issues is among the most complicated of CSS production problems and in my opinion it really slowed adoption when a 3-column table layout with 2 fixed and one "stretchy" column could be made in seconds.

  87. Fluid layout? by SanityInAnarchy · · Score: 1

    So far, I haven't been able to figure out a way of centering an object that I don't know the size of. Might work with JavaScript...

    The question I would ask about CSS being a pain to work with is: Why not XML/XSLT? Much more flexible, potentially saves much more bandwidth, but it's not well supported by any browser I've tried. One missing killer feature would be client-side includes...

    So I guess my real question is, why haven't we ditched HTML/CSS by now for something different altogether?

    --
    Don't thank God, thank a doctor!
    1. Re:Fluid layout? by bhaberman · · Score: 1

      XSLT doesn't really fulfill the same role as CSS, in the sense that it has nothing to do with formatting. So you still need a language to specify how things should look, and thus having an XSLT "stylesheet" doesn't really help you so much, since it is not much easier to do

      <booktitle>The Grapes of Wrath</booktitle>

      <xsl:template match="booktitle">
      <span style="font-style:italic;"><xsl:apply-templates/>< /span>
      </xsl:template>

      or even

      <xsl:template match="booktitle">
      <em><xsl:apply-templates/></em>
      </xsl:template>

      than

      <div class="booktitle">The Grapes of Wrath</div>

      div.booktitle {
        font-style: italic;
      }

      The formatting language that is usually used with XSL, namely XSL-FO, is more of a PDF replacement - designed for paged output, so that it not extremely useful as HTML replacement, even if anybody could manage to render it.

      On the other hand, you can make a table in XSLT and your content will still be separate from your presentation. You can use font tags and b tags and claim that it is good practice. In that sense it is better (read easier and more intuitive) than CSS. But I don't think you can do everything with HTML tags that you can do with CSS. So in that respect you are still stuck with CSS and you might as well use a CSS stylesheet.

  88. Clean, CSS-only vertical centering by manastungare · · Score: 0


        <div style="display: table-cell; vertical-align: middle;">
            <p>This is a vertically- and horizontally-centered block.</p>
        </div>
    </div>

  89. My Question: Are you guys no longer promoting MNG? by VGfort · · Score: 1

    Why is MNG no longer on W3C's website? You all were promoting it for quite awhile but not its no longer there? Are we just supposed to accept flash or SVG (which isnt supported in IE7 beta and unlikely in the final version) for animations with alpha support and JPG like color depth?

  90. Nested CSS by Snover · · Score: 1
    One of the things that I always find frustrating when I write CSS is how verbose you have to be when assigning styles to elements because there is no nesting.

    Instead of writing:
    .class1
    {
      font : 2em sans-serif;
     
      em
      {
        text-decoration : underline;
      }
      div, table
      {
        margin : 3em 0;
     
        span.class2
        {
          text-transform : uppercase;
          color : #900;
        }
      }
    }
    One has to write:
    .class1
    {
      font : 2em sans-serif;
    }
    .class1 em
    {
      text-decoration : underline;
    }
    .class1 div, .class1 table
    {
      margin : 3em;
    }
    .class1 div span.class2, .class1 table span.class2
    {
      text-transform : uppercase;
        color : #900;
    }
    Presumably this is to make the language less complicated for new users, but for me it just ends up adding a lot of un-necessary writing and makes it very difficult to easily apply styles to large node groups. Has implementing a method of allowing nested CSS like the above example ever been considered? If so, what were the reasons for deciding against it?
    --

    [insert witty comment here]
  91. Beyond HTML by pr1000 · · Score: 1

    How far can CSS be taken beyond the web page--that is, have generalized or non-web specific features for such things as page formating or type setting? Do you plan/wish/hope to take it farther than it currently is?

  92. Mixed units? by MbM · · Score: 1
    Why do we have to specify everything in a single unit?

    In other words, why can't I do the following: (without having to resort to messing with padding and margin hacks)
    element { height: 100% - 5em; }
    --
    - MbM
    1. Re:Mixed units? by dolphinling · · Score: 1

      You can in CSS 3. (No, I don't know why you couldn't in css 2.1. Probably because no one had figured out exactly what the best way to do it was.)

      --
      There are 11 types of people in the world: those who can count in binary, and those who can't.
  93. RTL and CSS by Anonymous Coward · · Score: 0

    Why does CSS continue to have terrible support for RTL (right-to-left) markets? Table-based layouts work perfectly; the tables are automatically flipped by the browser and everything is puppies and sunshine. But CSS styles DON'T flip, and there's no way to MAKE them flip, so it's a hideous mess trying to build a webpage that works for, say, an Arabic or Hebrew user.

  94. Your feelings on SVG? by dolphinling · · Score: 2, Interesting

    How do you feel about SVG (as currently specified, not as a concept)? What problems do you think it has, and why do you think those problems came about? If some other group (like the WHAT WG) were to rewrite it, would you support that?

    --
    There are 11 types of people in the world: those who can count in binary, and those who can't.
  95. Not really, no. by jbn-o · · Score: 1

    Had they proposed this and lost, I would have said it is ironic. Yes, it is inconvenient that we have this calculation and I think there is work afoot to change it now (work which, you'll undoubtedly point out, we wouldn't need to do had the standard gotten this right the first time). But to implement an existing open standard incorrectly is not laudable. To claim otherwise is to ignore the value of standards and rank them as less important than "I know better than you" with different versions of what is "better". Such efforts weaken interoperability, portability, and make things harder for users to control the work they'd rather focus on.

    1. Re:Not really, no. by gfxguy · · Score: 1

      I said they got it right, I didn't say it was a good thing - it wasn't, because it created yet another incompatibility.

      --
      Stupid sexy Flanders.
  96. Pronounciation of Name by shoolz · · Score: 1

    I am a language-nerd and would love to hear how your name is properly pronounced. I know that via the web, this can only be demonstrated via an audio file. If agree to host the .MP3 file, will you share the proper pronunciation with us? (I'm really very interested)

  97. CSS Selectors vs XPath by Anonymous Coward · · Score: 0

    Hakon, aren't CSS Selectors just a poor-mans XPath?

  98. Alternate Layout Paradigm by Anonymous Coward · · Score: 1, Interesting

    The layout paradigm used by CSS (and HTML) is quite different. If you look at `desktop GUI toolkits` - ala GTK, Qt, or even Java's AWT/Swing, they have many different layout models - flow based, border based, spring based, grid based (those are Java). The layout techniques offered by CSS dont seem to fit into any of these well (if I were forced to pick one, I would say its most like the flow layout).

    My question is: how does one replicate the flexible layout ideas using CSS? I cant seem to figure out a good way to create `scalable` pages with HTML and CSS without the use of hacks. It seems like the Safari developers are giving `scalable` layouts some thought (ref: http://webkit.opendarwin.org/blog/?p=55 and http://webkit.opendarwin.org/blog/?p=56). Em's and percents do make it work somewhat, but they dont cut it IMHO.

    I understand that the popular use of bitmap (as opposed to vector based images) on the web is one of the primary reasons for non-scalable designs - but desktop applications with the flexible layout techniques seem to look much better on physically small screens with high resolutions.

    I do like the direction SVG is going in, and hopefully IE will one day support.

  99. Questions. by The+Cydonian · · Score: 1
    Seeing as it is that you've worked on design elements, and on one of the more popular mobile browsers out there, what do you think are the challenges and pitfalls in designing webpages for mobiles? As a followup, where do you see the mobile application market headed, and how effective is it for web-designers to spend time on mobile browsers and not on, say, cross-(regular) browser compatibility?

    And finally, since no one else has said this, Howcome you're here! :-)

  100. corner styles by Anonymous Coward · · Score: 0

    One thing that customers often request is rounded corners. Well, that's not supported in CSS directly. You can overlay four divs, each with a corner image and make it work. But then the customer says "I'd like a border along the edge too", which isn't possible with that hack: a table with 3 x 3 cells and 8 new images (4 edges, 4 corners) will do it. All this wastes endless amounts of time (changing colors require new images, too).

    It would be much simpler to define those round corners with CSS syntax if it were available.

    When will CSS come to the rescue?

  101. Why no based-on styles? by Anonymous Coward · · Score: 0

    Why was there no (aparant) consideration for based-on styles? CSS, using rules based on how tags are nested, seems to necessitate a direct link between style and a pages structure (read: content).

    A link that sums some of my frustrations: http://www.cybergrain.com/archives/2004/12/css_con sidered.html

    Thanks for any insight.
    Andy

  102. CSS Parent Selector? by Enrico+Pulatzo · · Score: 2, Interesting

    My question has to deal with selectors: why doesn't CSS have a parent selector? All too often I find myself wanting to refer to a parent or a sibling of the current element but cannot (I'm sure there are a bevy of workarounds for individual cases...)

    ie Why can't I do something like this to refer to a table row (given a structure of <tr><td><a>) a:hover:parent:parent { background-color: #cff; }? It's a simple example, but there really isn't a way to do this without involving a client-side scripting language.

    Thanks for your consideration.

    1. Re:CSS Parent Selector? by belg4mit · · Score: 1

      Indeed, or the ability to refer to arbitrary values of arbitrary tags? Or to use variables?
      Or or or... and why do the specs move so slowly?

      --
      Were that I say, pancakes?
    2. Re:CSS Parent Selector? by Enrico+Pulatzo · · Score: 1

      I'm not sure if you're just being sarcastic or not, but I'll give you the benefit of the doubt.

      With regard to your first question, "arbitrary values of arbitrary tags" are you referring to selecting an element with a particular attribute set to a particular value? If you are, CSS 2.1 already supports that input[type="submit"] for example will select a submit button. (of course support isn't 100% there, but it's rather neat)

      As for variables, I suppose you could use XSLT to generate your style rules, but the use of XSLT is more geared towards transforming the content of the page, not making it pretty... I'm curious what use client-side variables would be without the support of conditional statements, care to expound on your interest in CSS variables?

    3. Re:CSS Parent Selector? by belg4mit · · Score: 1

      Sorry, I should have said arbitrary attribute of an arbitrary element, fulfills a similar role
      to variables but not entirely. e.g; being able to apply the CSS value for margin-left of
      div.foo to margin-right of the current element.

      I was double-checking via google (to see if CSS3 had some reference to them that I missed), and
      there is a fiar amount of interest in variable support. Most poeple want vars so they can clean


      h1{ font: blah blah blah}
      h2{ font: blah blah blah}
      h3{ font: blah blah blah}


      I'm not sure why h1, h2, h3{ } wouldn't work here. However, if you're setting
      many other attributes for a given element type it'd be nice to be able to use variables to
      avoid cut-and paste bloat and still keep related things tight and together. Otherwise you
      have to something which is equivalent but does not read as well to some:

      /*whatever the syntax might be */
      var = blah blah blah

      h1{ font: var; color: #def}
      h2{ font: var; color: #abc}
      h3{ font: var; color: #789}
      h4{ font: var; color: #456}


      Or something...

      --
      Were that I say, pancakes?
    4. Re:CSS Parent Selector? by Enrico+Pulatzo · · Score: 1

      Okay, I think I understand. Being able to refer to another elements compiled rules value would be sorta useful, though pretty far out there I think. I can already picture the stock price of Tylenol going up for the developers implementing that ;)

      I think you hit on the reason for no variables (the comma rule separator). While we're on the topic of reusable values, I've always wanted to have an external color table for PNGs and CSS so I could change my color scheme across the entire theme of my project without regenerating my image files (I can sort of accomplish this with SVG, but there are so many headaches with using SVG across browsers I don't think it's worthwhile; let alone use SVG for a background image).

  103. Natural enemies by dino213b · · Score: 1

    On a side note, Bears and Robots are natural enemies.

    http://www.angryflower.com/

  104. Plans for higher level abstractions by pramodbiligiri · · Score: 1
    Will doing webpages with CSS always requiring knowing the layout manager in detail and hand-coding markup, or are there any plans to encourage better tools like these:
    • A drag and drop layout tool which will generate proper CSS. Some properties would still need to be set by the user.
    • Ditto for the styling too.
    • Variables in CSS files and libraries of CSS files which can be included, like the current trend with Javascript.
  105. Possible to allow imports anywhere in the page? by pramodbiligiri · · Score: 1

    According to the CSS spec:

    Any @import rules must precede all rule sets in a style sheet.

    What is the technical reason for this? Is it possible to relax this so that import rules can be embedded in a style tag anywhere in the page, similar to how Javacript includes can be inserted anywhere?

    This can be used by users of publishing systems to mix different 3rd party styles into the page, where they are not allowed to modify the HTML HEAD section - for example, Livejournal, Blogger and Wordpress. Javascript has benefited a lot by this feature.

  106. Rewrite CSS by asbjornu · · Score: 1

    If you had the chance to rewrite the whole CSS 1 specification (and thus the later CSS 2 and CSS 3 specifications which depend on it), what would you like to change? Does the inconsistency of property names like 'color' (which applies to text) and 'background-color' (which applies to elements), the (in)famous box model (don't you agree that IE's quirky implementation is more intuitive?) and other things like that bother you, or do you feel like most of it is as perfect as it can get? If there was anything you could change, what would it be?

    --
    He's a loathsome, offensive brute, yet I can't look away
  107. cols and colgroups by scotbot · · Score: 1

    Those tags used with style classes work just fine in IE. But use adjacent sibling selectors in everything else until CSS 3's nth child selectors are more widely supported.

  108. Adobe Flex by Krimszon · · Score: 1

    1. What are your thoughts on Adobe's Flex and the way it uses CSS for it's components? It uses CSS syntax, but not the W3C rules.

    2. Related to 1: CSS works great for documents. Is CSS a good fit for webapplications?

  109. Do It Now, for CSS 4.0 - XCS by Tulka$ · · Score: 1

    CSS is not enough popular beacause it's not XML based syntax.

    With an XML syntax, it would allow us to generate or manipulate dynamically the Style of our
    web sites without waiting the DOM implementation (for the javascript sample).
    If a non Web developper want to use CSS for it's desktop application, he must think "How to begin this" !
    If it was XML based, he would do it immediately and CSS would be even more STANDARD.

    My question for Hakon : Will you do it ? Or must i make my own XML+XSLT to generate CSS.

    Thanks

  110. CSS Preprocessor by Nurgled · · Score: 1

    At work I get around this by having a little script that preprocesses CSS. My CSS files start with some property declarations and then reference these properties like this:

    @property background_color {
    type: "color";
    description: "Page Background Color";
    }
    body {
    background-color: prop(background_color);
    }

    The verbose property declarations are used to present a pretty property generator for our designers to use so that they can play about with the color selections, alignments and so forth with a friendly interface and previews. We can then generate a static stylesheet file which we can make final manual tweaks to and use on a site. Unfortunately I can't release this stuff since it's owned by my employer, but it wouldn't be hard to roll your own similar software. The most complicated part is the bit that parses those property at-rules, since it's essentially a cut-down CSS parser; if I was doing it over again I'd probably use a simpler syntax.

    It seems like quite a roundabout way to do it at first, but really it's not much different to using an HTML pre-processor to produce the boilerplate stuff on a large, static site.

  111. CSS and HTML as the web gets more media by titchy · · Score: 1

    Are we going to see the CSS and HTML standards start to support video better? I would love to see a video program produced where the data, usualy mixed in the picture, was instead HTML and mixed in the image by my browser. That would allow me to select links provided by the producers, move the data out of the image area or import it into a spreadsheet. What do you think?

  112. CSS Table support by MenTaLguY · · Score: 1

    Update: I just checked quirksmode.org. Looks like all the major browsers support CSS tables now ... except for IE. *sigh*

    --

    DNA just wants to be free...
  113. Declarative Spec vs Procedural specs by tigersha · · Score: 1

    Is there any good reason why the ENTIRE CSsmust alwaysbe declarative? While I am the first to state that declarative specification usually beats the procedural way (say float:right; width:50; instead of left: (windows-width - 50) or something like that).

    However, declarative systems very often lead to a lot of intellectual masturbation to get some really "nifty" way of getting things just so simply case trust the computer is not always a good idea. Especially since computers tend to use different algorithns to translate the declarations into a real screen layout. While some geeks find the intellectual masturbation stimulating, quite frankly it wastes my time. Sometime I really just want to tell the damn thing that I want the box 70 - window-width and get on with it. After all, if I can write a JSP page I can presumably figure out something like that. Instead, I have to consult 6 websites on the l33t way to do a 3 column layout.

    So my question is: Any ideas on making CSS a bit more procedural? Just for the cases where the computer screws up?

    --
    The dangers of excessive individualism are nothing compared to the oppressiveness of excessive collectivism
  114. The solution by flieghund · · Score: 1

    Use multiple classes in your HTML.

    Define your color classes (color1, color2, etc.) in your CSS. Do not define colors in other CSS classes (unless you don't want to use your "aliases" with those classes).

    In your (X)HTML mark-up, define your classes to use the "other" CSS classes followed by the "color aliases" separated by spaces. For example, class="myClass color1" applies the .myClass class and the .color1 class. (Like any CSS, later definitions override earlier definitions, which is why your "other" classes should avoid defining colors that would be overridden by the color classes. Of course, you may find this effect useful...)

    I use this method on my personal site. It is potentially an extremely powerful tool that is not limited to colors; I also use it to apply other types of formatting, including positioning (mostly horizontal alignments) and common div widths (which means I don't have to update every div with a new width, only the class definition for that kind of div.)

    I would love to claim original credit for this concept, but admittedly I found it somewhere else... I just don't recall where...

    --
    "I came here to kick ass and chew bubblegum. I'm all out of bubblegum." MSE USC APX AIA CSI CASp
  115. Inheritance by belg4mit · · Score: 1

    I understand that cascading->inheritance, but why are one's only options inheritance or
    explicitly setting values? Why is it not possible to set an element's attributes in reference
    to an older ancestor, or to ignore the parent's setting and auto as if the parent's attribute
    were not set (were set to auto)?

    e.g; Given two nested div's, and the need for the parent div to not be of some pre-determined size
    but not be full-page (achievable with display: inline): it does not appear to be possible to have
    the child maintain the prior/wider (tight) "auto" width.


    #ctrl{ position: relative; cursor: help;
            border: 1px dashed #ddd; /* display: inline */}
    #tip{ display: none; }
    #ctrl:hover #tip{ display: block; border-style: ridge; padding-right: 1em;
                      position: absolute; left: 2em; top: 1em; z-index:4;
                      background-color: #fffff4; }


    Basically, shrink-wrapping and stretching appear to be convoluted and require some divination of
    the user about the size of things (even when using em)... and yield not -quite right results.

    --
    Were that I say, pancakes?
  116. Commenting by belg4mit · · Score: 1

    Why didn't CSS include C++ style comments as well? Many people seem to use them interchangably
    elsewhere, so when you adopted half of this classic pair you break many people's assumptions of
    functionality and subtly invalid CSS can result.

    --
    Were that I say, pancakes?
  117. Nesting by daeg · · Score: 2, Interesting

    Was nesting ever considered? For example, instead of:

    #alert h1 {
    background: red;
    color: white;
    }
    #alert p {
    color: silver;
    }

    something like:

    #alert {
    h1 {
    background: red;
    color: white;
    }
    p {
    color: silver;
    }
    }

    Also, do you think CSS3 is too complex? Some of it seems nearly impossible to correctly implement across browsers. Is there any consideration going in to the speed and complexity of rendering? I fear that CSS3 (and beyond) are beginning to play into the assumption that all computers will be Pentium 4's with 2 GB of RAM and plenty of clock cycles to spare.

  118. You do know he's Opera's CTO, right? by Valdrax · · Score: 1

    See the comment title. I mean, I'd hope he'd give the browser his blessings or else no one else will.

    --
    If it's for-profit but free, you're not the customer -- you're the product (e.g., the Slashdot Beta's "audience").
  119. Image replacement: what's the best way? by akratic · · Score: 1

    Many CSS users want to be able to take a heading or a short piece of text in the HTML and use CSS to replace it with an image. Users with graphical browsers should see the image. Users with text-only browsers should see (or hear) the original text. Search robots should also see the original text. (They often don't treat alt tags the same as normal text.)

    One popular way to do this is Fahrer image replacement. This technique uses a piece of HTML like this

    <div>
    <span>Hello world!</span>
    </div>
    and a piece of CSS like this
    div {
    background-image:url("hello_world.gif");
    background-repeat:no-repeat;
    height:35px;
    }

    The problem with Fahrer image replacement is that several screen reading programs don't pick up the replaced text. Many other image replacement techniques have been devised.

    Which image replacement techniques do you think are okay to use? Which, if any, do you consider abuse of CSS?

  120. Forgot the most important part by akratic · · Score: 1

    Oops. I left out the most important part of the CSS:

    span {display:none;}
  121. Insta-pwn by Anonymous Coward · · Score: 0
    Tried any good programming language lately?
    No, just [insert whatever programming language(s) you've devoted years of study and a pile of tuition fees to learn in depth]. HA!
  122. CSS2.1 Held Up, CSS3 Broken Up? by SoopahMan · · Score: 1

    How do you feel about the years of wait for CSS2.1 and its several near-misses with becoming a Recommendation?

    How would you feel about breaking CSS3 down into even smaller chunks so that the approval process can get back on its feet, with W3C standards moving out of 1999 (when the last CSS Recommendation was approved - CSS 1.0)?

  123. Misleading questions (troll?) by hkmwbz · · Score: 1
    In your work at Opera, you have clearly paved a path that includes going beyond the W3C standards. Whether it is WhatWG implementations, or new functionality specific to Opera (2dgame), you are pushing into new territory.
    The goal of WHATWG is to formally standardize it as a W3C recommendation eventually. As for "2dgame", isn't the full name "opera-2dgame"? In other words, it's properly marked as "Opera-only" until it gets standardized through WHATWG.

    Can you explain why W3C isn't sufficient, and why efforts at Opera to expand beyond the standards differ from Microsoft's embrace/extend model?
    Opera isn't "expanding beyond the standards". It is working together with other browser vendors to create a new specification which builds on HTML. The way you are asking the question makes it sound like Opera is doing this alone, and that it is ignoring formal standard processes, which is wrong.

    Even Mozilla is a member of WHATWG, so if Opera is "expanding beyond the standards", so is Mozilla.

    From whatwg.org:

    The technical work is currently focused on developing the specifications to levels appropriate for the W3C Last Call stage.
    --
    Clever signature text goes here.
  124. Aliases solution by booch · · Score: 1
    I've got a pretty good solution to what you call 'aliases'. I use CSS's @import functionality. I put all my non-color CSS in a CSS file called main.css, then create 'skins' with just the color info. You don't really have any non-skin stuff in your example, so I'll have to use my own.

    main.css might look like this:

    h1 {font-family: arial; font-size: 18pt;}
    .sidebar {white-space: nowrap; width: 8.5em;}
    #banner h1 {width: 100%; vertical-align: middle; text-align: left;
    font-family: "Times New Roman", times; font-size: 32pt;
    font-weight: bold; line-height: 1.5; border-bottom: 5px solid black;}
    .menu {list-style-type: none;
    .menu li a:hover /* NOTE: This will typically get overridden. */
    {color: white; background-color: black;}

    green.css might look like this:

    @import "main.css";
    #banner h1 {color: #4A4;}
    .sidebar, ul.menu ul {background: #EFD;}
    ul.menu li a {color: #000;}
    ul.menu li a:hover {color: #EEE; background: #696;}
    #footer1 {background: #6A5;}

    red.css might look like this:

    @import "main.css";
    #banner h1 {color: #A44;}
    .sidebar, ul.menu ul {background: #D66;}
    ul.menu li a {color: #000;}
    ul.menu li a:hover {color: #EEE; background: #966;}
    #footer1 {background: #A43;}

    In my HTML, I can specify one of those as the default 'skin', and the other as an alternative:

    <link rel="stylesheet" title="Red" href="red.css" media="screen" type="text/css" />
    <link rel="alternate stylesheet" title="Green" href="green.css" media="screen" type="text/css" />

    Firefox users can then select between those 2 page styles from the View menu. For bonus points, I add a JavaScript style-switcher to allow other browsers to switch using some links on the page. Using cookies, I can remember which color they chose last and make that the default -- either in JavaScript, or on the server side.

    --
    Software sucks. Open Source sucks less.
  125. the font property by renku · · Score: 1

    Today the most common use of CSS is for styling text: color, size, bold, underline... The property 'font' gives you the ability to specify many of those common text-styling techniques, but includes rarely-used properties like font-variant while leaving out a really frequently used ones like text-decoration.

    Do you think that the property 'font' has been a failure? It has probably the most complex syntax of all CSS1 properties and according to my research on CSS usage is used even less than z-index and float.