Don't use css or table layout, use Sass and Compass instead
gom-jabbar.org
gom-jabbar.org
Ultimately, yes, you can use whatever the hell you want. But if you're a front-end developer, if you care about your webiste scaling to millions of users, if you care about providing best experience even to dial-up users or users of old PCs / Macs, then you're going to spend the time optimizing everything you can. Sass goes against that and creates bloat. Fine for back-end developers who just want the pain of working with CSS to be over, maybe, but not for front-end developers.
Haml on the other hand is great.
So far, the only people that I've heard praise Sass are back-end programmers, rather than full-on front-end developers.
You could also have semi-programmatic modes that show some programmatic features and "expand" others. Also it would be possible to look at the plain CSS but have values coming from the same variable in a distinct color.
We should get more creative with multiple views of the same document in the editing department.
Its times like these I wish I could redistribute earlier 'upmod mistakes' to this posting.
Misleading title, by the way. Even if you generate CSS from (slightly) higher-level source, you're still using CSS for layout.
One thing though is that once you use compass with the blueprint framework implemented in sass it allows you to easily generate css in situations where you would have used a table instead for layout.
In other words, build your site by instantiating components as you would if you were building a windows or flash application. I think that would be my preferred way of working.
For example: if I wanted a heading I could write a new class derived from a standard library, set a few properties to define its colour and font, perhaps some properties that define how it moves in relation to other entities.
You could even build a proper style hierarchy.
I've always felt the html / css / javascript stack was kind of clumsy and would love to just work in one environment.
I've never likes css and the very fact that things like Sass and Compass exist suggest to me its not really a very good way of defining an applications style.
You might want to look at http://cappuccino.org/ for a javascript library doing what you describe (disclaimer: also I've planned for some time to take a look at it, I haven't got around to it yet)
But unlike Sass it doesn't abandon the cascade, and things look a lot simplier, at least to me. I guess because its in LUA it wasn't cool enough.
It did get the "one of the best of the month" at smashing magazine, whatever that means.
Writing massive stylesheets made me write moonfall, and after I did that, I found that its easier just to keep your css simple. And then I never needed it.
Find it at http://moonfall.org/
1. create .css file
2. tweak pixel-positions via Firebug and instant preview
3. write final positions into .css file
Firebug nicely display the line number of the css rule to tweak. This isn't possible with something like Sass, so i assume it would slow me down.
This instant preview tweaking with Firebug is even more important with legacy CSS to find the position where a certain value is set. I can't think of a way to do that with Sass.
There are many things that tables can do that CSS just can't (or that take much longer).
I think that the point of using Compass is that it makes most of the situations where you would use tables easy to do.