Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Ask Håkon About CSS or...? 326

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.
This discussion has been archived. No new comments can be posted.

Ask Håkon About CSS or...?

Comments Filter:
  • flamebait (Score:0, Insightful)

    by Anonymous Coward on Tuesday June 20, 2006 @02:03PM (#15570884)
    Why is Opera complete and utter rubbish?
  • by mini me ( 132455 ) on Tuesday June 20, 2006 @02:10PM (#15570937)
    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.
  • by infestedsenses ( 699259 ) on Tuesday June 20, 2006 @02:16PM (#15570974) Homepage

    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" [themaninblue.com]. Centering an object in the dead center of a page also requires strange procedures such as this one [wpdfd.com], 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?

  • by DarkSarin ( 651985 ) on Tuesday June 20, 2006 @02:34PM (#15571126) Homepage Journal
    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.
  • Acid2 test? (Score:3, Insightful)

    by bigpat ( 158134 ) on Tuesday June 20, 2006 @02:47PM (#15571250)
    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 [webstandards.org]

  • by Anonymous Coward on Tuesday June 20, 2006 @03:11PM (#15571439)
    "howcome" this page [w3.org] doesn't CSS validate [w3.org]?
  • by musicmaster ( 237156 ) on Tuesday June 20, 2006 @05:18PM (#15572384) Homepage
    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?
  • Re:Padding (Score:3, Insightful)

    by quis ( 737516 ) on Tuesday June 20, 2006 @05:44PM (#15572530) Homepage
    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.

And it should be the law: If you use the word `paradigm' without knowing what the dictionary says it means, you go to jail. No exceptions. -- David Jones

Working...