Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
The Internet

10 Best Resources for CSS 344

victorialever writes "Since one could have noticed an increasing number of websites that are employing CSS and an increasing number of resources talking about how great CSS is, it seems to become impossible not to jump on the CSS bandwagon as well. The 10 Best Resources for CSS provides an impressive list of the CSS resources which have recently become essential for web-developers. Among them - CSSZenGarden, The Web Developer's Handbook, Stylegala, PositionIsEverything etc."
This discussion has been archived. No new comments can be posted.

10 Best Resources for CSS

Comments Filter:
  • by iBod ( 534920 ) on Monday August 15, 2005 @08:10AM (#13320291)
    It's still easier to do certain things with table-based layouts than it is with CSS alone. Control of vertical positioning/height being the obvious one. That and fluid layouts.

    If you're a busy designer, sometimes you just have to take the pragmatic route rather that waste hours or days trying to make a pure CSS layout work across all the common browsers (none of which implement CSS 100% correctly anyway).

    Either that or (worse) you compromise the design to make it fit the limitations of a pure CSS layout.

    I think the latter approach accounts for the huge number of 'identikit', bloggish-looking sites out there (all proudly displaying their little W3c validation logos of course).

    It's still perfectly possible to create valid, semantic XHTML/CSS markup that uses the odd table for layout (no, I don't mean a heap of nested ones with spacer gifs!).

    While I'm all for standards and separating content from presentation, at this stage of the game, we just need to choose the solution that works best.

    I know it's probably heresy to say this, but IMO tables work in an intuitive way that you can easily visualize whereas a mass of floated DIVs often do not!
  • Bookmark this page (Score:4, Insightful)

    by jurt1235 ( 834677 ) on Monday August 15, 2005 @08:15AM (#13320306) Homepage
    A lot of other CSS sources are already being quoted now, better start bookmarking this /. article then.
  • CSS tables (Score:5, Insightful)

    by Richard W.M. Jones ( 591125 ) <{rich} {at} {annexia.org}> on Monday August 15, 2005 @08:20AM (#13320317) Homepage
    Yes, a few sites are now using CSS. But often, they still don't "get it" - they've just replaced <table> with <div> to arrive at a mess of divs, instead of a mess of tables. We call this "CSS tables".

    Structural markup is the essential differentiating factor, not just that you have found out how to replace tables with divs ...

    </rant> over.

    Rich.

  • by arkanes ( 521690 ) <arkanes@NoSPam.gmail.com> on Monday August 15, 2005 @09:57AM (#13320866) Homepage
    It isn't valid semantic markup if you have to nest everything in 18 layers of divs and spans to convince a browser to apply your CSS rules correctly, either. There's nothing "less" semantic about using tables instead, and there's some serious advantages - like the fact that all major and most minor browsers will render them identically, that they're far more intuitive, and that they allow re-flowing in a way that you can only do with CSS attributes that are explicitly designed to mimic the layout algorithms of "traditional" tables. Which, of course, IE doesn't implement. And much as it'd be nice to simply use the tags anyway, as a practical matter you can't simply ignore IE unless you're creating a special purposed or otherwise private web site.

    HTML is not a semantic markup language, hijackers in the W3C not withstanding. It's a rich text markup format. It always has been. XML is (well, can be) semantic markup, and if you really want to store your pages semantically, use XML (with no styling at all), and transform them with XSLT. Dispense with the ridiculous concept of "semantic HTML", which is useless in practice and almost useless in theory, and try using the correct tools for the right job - XML for storing your content, and HTML for presenting it.

  • by xENoLocO ( 773565 ) on Monday August 15, 2005 @10:15AM (#13320959) Homepage
    Oh, ye with little experience.

    Those of us who have been dealing with CSS for several years have no problem at all visualizing the layout. The big question here is, how do you visualize YOUR layout when you can't have images loading? How do you visualize your table layout on a cellphone? How do you visualize your layout when you cant visualize anything at all... for example if you have low vision or no vision?

    Maybe instead of thinking about getting the job done fast you should consider getting the job done right when you're doing your estimates.

    Have a good one!

    This post brought to you in semantic XHTML.

  • by schon ( 31600 ) on Monday August 15, 2005 @10:23AM (#13321022)
    there's some serious advantages - like the fact that all major and most minor browsers will render them identically, that they're far more intuitive, and that they allow re-flowing in a way that you can only do with CSS attributes that are explicitly designed to mimic the layout algorithms of "traditional" tables

    If you really believe all of this, then I don't think theres hope for you... unless you define "major and minor" browsers as "IE". Tables get rendered differently by different browsers, just like CSS gets rendered differently.. the only thing is that it's easier to work around CSS bugs

    CSS is *WAY* more intuitive than tables ever were (and there's a reason - because it's designed that way.) You use DIVs to define blocks of code, then use CSS to say how you want them positioned. With tables, you have to screw around with row and column spans *in the HTML itself*.

    It's pretty obvious that you prefer tables because you've spent a lot of time learning their quirks - don't slam CSS just because you don't know how to use it properly.

    try using the correct tools for the right job

    If you really believed this, you'd be using CSS.
  • by arkanes ( 521690 ) <arkanes@NoSPam.gmail.com> on Monday August 15, 2005 @10:41AM (#13321152) Homepage
    Table layout algorithms have been essentially identical in all major browsers for at least 4 years. CSS layout, on the other hand, has at least 4 years to go before it's anywhere close.

    I've been using CSS for many years. I've been using tables for many years, too, but don't mistake the fact that I'm aware of deficencies both in the CSS stndard and in it's imlpementations for a lack of knowledge. And the fact that you're telling me I need to use blocks of DIVs to layout my stuff is telling me that you're just another blind herd following CSS monkey, rather than anyone who can actually evaluate the usefullness and appropriateness of claims like "semantic markup". There's no excuse for telling someone to replace thier tables with divs "just because".

    And just because you managed to find some stylesheet on a CSS site that you use blindly to work around certain CSS bugs (no doubt without realizing that the stylesheet itself relies on other bugs to work correctly, and the widespread reliance on these bugs is a major obstacle to the uptake of correct CSS implemetations in IE), doesn't mean that CSS incompatibilities are easier to work around than the practically non-existant table ones.

  • by Bogtha ( 906264 ) on Monday August 15, 2005 @10:45AM (#13321182)

    There is no way in CSS to say something like "size this element relative to the size of that other element" without a parent-child relationship between them.

    Yes, there is. You can do it with CSS tables. Internet Explorer doesn't understand them, but we're talking about the capabilities of CSS, not the capabilities of Internet Explorer, right?

    In any case, there's very few instances where a parent-child relationship isn't available to be used in this way. That's just the nature of web pages - things that are visually related tend to be structurally related too.

    compare the difficulty of moving from a 3-column fixed format to a 2-column flowed one in CSS vs tables

    That's not a very good example; in both cases it usually requires drastic alterations to the page structure.

    The table version requires changing a couple tag attributes and some reformatting.

    Come off it. Typical table layouts would need way more changes than that. I've made this change quite a few times to various websites of both kinds. The CSS websites, I've had to rearrange a couple of <div> elements and change a single stylesheet. The table websites, I've had to completely rework dozens or hundreds of pages, depending on whether they were dynamically generated or static.

    And even with the huge amount of CSS hackery required to get a basic "newspaper" style column layout (and it takes a very detailed knowledge of CSS to implement this, although [of course] most people will simply lift it from elsewhere)

    Rubbish. Float the first column over to the side, set percentage widths on each column, and clear the footer. That's not "a huge amount of CSS hackery", and it's even easier if you don't have to support Internet Explorer.

    it *still* doesn't demonstrate the same, intuitive behavior that table rendering does when you size it very small or very large.

    That's what min-width is for. I don't think table behaviour at extreme sizes is very intuitive at all, and I think it's just a convenient distraction - how many people actually need to resize their window to extremely small sizes and keep the layout intact?

    To the best of my knowledge, you cannot make a column based layout in CSS without defining explicit widths at some point

    You are being ambiguous. Did you mean fixed width?

    Here's a hint - your bug reliant stylesheets are actually an *obstacle* to the implementation of proper CSS support in IE.

    Unless you are an Internet Explorer developer, you'd better back off on that point, because they have posted on their weblog that they are going ahead and fixing CSS 2 selectors anyway. So it's not an obstacle and it looks very much like you've just made that up.

  • by Bogtha ( 906264 ) on Monday August 15, 2005 @10:58AM (#13321305)

    I'm an experienced designer but if I can't get CSS to do what I want (or find an example on the web) where does this code come from?

    Well you don't start out with a complicated example when you learn other stuff, do you? Back off on the corporate intranet pages and do a few simple layouts to begin with. Once you're familiar with the basic concepts, it'll be easier to move on and do more complicated things.

    Experience with tables doesn't translate to experience with CSS. You aren't experienced, you are a newbie as far as CSS layouts are concerned.

    HTML isn't semantic, never was, and doesn't look like it ever will be.

    What are you talking about? "Semantics" means "meaning". If you are using element types that mean something (as opposed to element types that just give a particular visual effect), then you are using semantic HTML. HTML has had semantic element types since the very first version.

    The code is nasty but it wins hands down for speed and being intuitive.

    People keep saying tables are intuitive. They aren't. You've just been using them a long time. Lots of rowspans and colspans aren't intuitive. Spacer gifs aren't intuitive. Superfluous closing tags aren't intuitive. It's all just stuff you've memorised. Of course something new is going to be at a disadvantage if you are assuming that you are going to be just as good with the new stuff even though you haven't built up this experience first.

  • by nazh ( 604234 ) on Monday August 15, 2005 @11:10AM (#13321438) Homepage Journal

    There are exception like Patrick Griffith's "Elastic Lawn" http://www.csszengarden.com/?cssfile=/063/063.css& page=0 [csszengarden.com]. Scales rather nicely when you adjust the font-size.

  • by Anonymous Coward on Monday August 15, 2005 @11:37AM (#13321682)
    Presentation is not *more* important than content, but it certainly *is* important.

    I expect you'd prefer all websites to present raw information in an unbroken screeds of text, without paragraphs or columns, in 14pt black Times New Roman.

    Whether you care or not, for the vast majority of people good, attractive design matters (if only subconciously) and is as much a part of communicating an idea as text is.
  • by Bogtha ( 906264 ) on Monday August 15, 2005 @11:43AM (#13321737)

    you (still) can't create beautiful layouts in CSS, while maintaining anything like cross browser support

    The majority of the CSS Zen Garden designs have cross-browser support.

    user defined styles or overriden text size or even page size

    Table layouts have no support for user-defined styles.

    Whether a layout works with overridden text size or has a fluid layout is not something that is different between table layouts and CSS layouts. Both can break, both can work. It's whether you assume a certain text size or canvas size when laying things out that makes the difference, not whether you use CSS or tables.

    Of course, having all these features in some avante-garde fancy art designers wet dream is hard using *any* technology - and thats another fundamental that people skip over, too.

    I missed your point there. Can you restate it?

    CSS garden could be implemented with a big image map much more simply, and a Flash site not only simply but also with more functionality.

    Huh? Maybe you could get it to look similar under default settings, but it wouldn't work the same - and I thought you just said user-defined styles, overridden text size, different window size and cross-browser support were success criteria? Image maps and Flash presentations can't acheive all that.

  • by oddityfds ( 138457 ) on Monday August 15, 2005 @01:32PM (#13322609)
    Just write a plain HTML page, something that would look ok and be readable without CSS. Then add div:s and CSS.

    The result is a page that separates content from layout and works well both with and without CSS. It will also be easy to replace the CSS when you need to. This is also useful when you have different style sheets for different media. Have a "print" style sheet that excludes the sidebar and uses different colours.
  • Re:CSS tables (Score:2, Insightful)

    by Bogtha ( 906264 ) on Monday August 15, 2005 @03:33PM (#13323876)

    Preferably, anyone back to the version 2 browsers should be able to get something out of it

    That's taking things too far. Anybody using browsers that old are dead in the water - they don't support the HTTP Host header, which makes it impossible to visit websites that use virtual hosting - which is extremely common. Also, if I remember correctly, you couldn't even use Internet Explorer 2.0 to download Internet Explorer 4.0 from microsoft.com when it was released - about five years ago.

    As far as version 3.0-era browsers go, their SSL root authority certificates expired years ago, so you can't use them for e-commerce without customers getting big warnings about your website being insecure.

    Version 4.0-era browsers are so rare, with capabilities so diminished compared with version 5.0-era browsers, that I would say that it's not worth supporting them, although a case can be made both ways. But supporting 3.0 and 2.0-era browsers isn't justifiable in my opinion.

  • by nazh ( 604234 ) on Monday August 15, 2005 @07:31PM (#13326256) Homepage Journal

    He was also complaining about designs that did not handle resizing of text very vell. And very common "webdesigners" tries to lock the users to one font-size and the layout breaks horrible if one tries to resize the text. So yes, the layout I linked to is an exception to that rule. Even a layout that uses the whole width can break when the text is resized.

    So for me a design that doesn't break in diffrent font-sizes is more important than one that uses the whole width.

  • by yasgo ( 901848 ) on Monday August 15, 2005 @07:32PM (#13326269)

    You don't code a site in CSS. The content still uses HTML.

    The CSS styles that content.

    Instead of div hell you should code the content using semantic blocks: headings (to introduce sections of the page), lists (for lists of items), forms, paragraphs (for most of the normal content), and tables (for your tabular data)

  • by Anonymous Coward on Monday August 15, 2005 @08:23PM (#13326585)
    I scanned the article quickly, and did not find a CSS validator [w3.org] on the list. This is a useful tool for CSS novices such as myself.

Neutrinos have bad breadth.

Working...