How to get started creating CSS for given (dynamically generated) HTML?

If you're looking for practical examples of separating style and content, then I'd suggestion the CSS Zen Garden Trawling through the HTML and CSS is inspirational and enlightening and should help with what you're trying to do.

If you're looking for practical examples of separating style and content, then I'd suggestion the CSS Zen Garden. Trawling through the HTML and CSS is inspirational and enlightening and should help with what you're trying to do. My #1 tip would be be to make everything as semantic as possible and use lots of classes and ids to hook your styles onto.

Great. I knew CSS Zen Garden, but only as example for the power of CSS. I never noticed the "CSS Resources" link that points to "Zen Garden Coding & Design Process Write–ups" which is exactly what I looked for.

You made me look again - thanks a lot. – Olaf Kock Oct 13 '08 at 7:48.

Usually, Whenever I am in a situation Like this, I bring up the page in FireFox, inspect the different elements using FireBug and see exactly what css is applied to them. THen I'l just modify the existing css until I get what I like. You can even play around in firebug and modify the CSS without "saving" those changes.

Thanks for your answer - we've also started this way, it feels a bit "hackish". But I really love Firebug for this feature... – Olaf Kock Oct 10 '08 at 13:51.

Have look at CSS Tidy, we normally use this to clean up the CSS and reorganise for development and production. However, I personally prefer writing HTML/CSS by hand before using this. It is just a matter of individual preference I guess.

Thanks. As far as I understand, Liferays build scripts will perform some packing magic on our css, but I'll keep a reference to css tidy for other projects. Knowing that CSS might get packed doesn't help writing it in the first place.

Anyway - Thank you very much for your answer. – Olaf Kock Oct 14 '08 at 19:13.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions