Hacker News new | past | comments | ask | show | jobs | submit login
Not another CSS Framework (CSS Layouts that always work) (primarycss.com)
51 points by curtisspope on Aug 13, 2010 | hide | past | favorite | 15 comments



Too bad they don't dogfood it (source: Default.aspx):

    <div class=mainholder>
    ...
    <div class=sidebar>
    ...
    <div class=maincontent>
    ...
    etc.
Also, the classic (header, 3-col, footer) layout is missing.

e.g.

    HEADER
    ------
    C|C |C
    C|C |C
    C|C |C
    C|C |C
    C|C |C
    ------
    FOOTER


Which is especially dumb because footers are the one thing I have to exert mental effort remembering how to code up each time I do a layout.


I don't understand CSS frameworks. An experienced front-end developer can create the basic layout for any site in a matter of minutes.


Yes, but I'd bet that many UI developers have built up a set of common selectors and techniques to make this easier. A framework just codifies that practice for use by others.

An advantage of using a framework is that a good one will not just get you want today, but make it easier to change that layout tomorrow when the client has new opinions.

If you use something like 960gs, for example, it is trivial to create any of the layouts shown for Primary. But it is also trivial to add or remove or grow/shrink subdivisions with 960gs, whereas Primary looks a bit hard-wired.


There is no such thing as good CSS framework. If you are using 960gs you are just littering your code with "grid_2 suffix_4" kind of presentational crap. What's worse to change layout you must change the html (class names), instead of tweaking just CSS. In short — those who don't know CSS shouldn't use frameworks, those who do know don't need them.


"In short — those who don't know CSS shouldn't use frameworks, those who do know don't need them."

Whatever.

I get the results I want in an effective and efficient manner, using simple, direct markup I find easy to follow and easy to maintain. And it will be easy to follow and easy to maintain by the people I turn it over to, who typically do not employ anyone who has to time or inclination to devote themselves to the minutiae of reliable cross-browser sanctimonious markup purity.

YMMV, of course.

The horror of littering code with presentational crap (hyperbole much?) means, in real life, pretty much diddly squat, because patting oneself on the back for hand-crafting pristine HTML + CSS has near zero value relative to other concerns.


Some developers prefer to treat software development as a craft, and display craftsmanship in the final product, even if nobody else will ever appreciate it.

Others do not.


That's quite true.

Also true is that some craftspeople have an awareness of which details matter, and which don't.

Others do not.

In the end, though, it's a matter of what problems you're trying to solve, what value you are looking to create, and for whom.

One person's craftsmanship is another's premature optimization, and vice versa.



Is this a joke? Merely setting a border on any of their elements will cause browsers to show a horizontal scrollbar for no good reason.


This is really where things like Sass/Compass excel. This would make a fantastic plugin for it.


These aren't really that useful. These layouts were designed for comic book panels, not for web-based content.


Comic panels with headers? I think its for css


i liked it because its conceptual from a comic book standpoint





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: