K2` said:
hi there
i'm not sure whats the best way to build a website anymore.. using css seems to be more professional way of doing websites.... but u seem to always run into compatability issues across browsers. using photoshop to make a layout then slicing it up and using tables seems a lot easier. What do people normally use to make layouts these days?
TIA
K2
Hey man,
I am a recent CSS switcher and now a HUGE advocate of designing in CSS. I too always thought tables and ps slicing had its place. The fact is now with the current generation of browsers we have, and the techniques that exist for CSS, you can do pretty much anything you used to be able to do in tables. Perhaps netscape 4 being the exception.
CSS has some huge benefits. I will attempt to cover a few of them here.
- Easier Cleaner code - Design in CSS is clean, by pulling elements from your style sheet across your entire site you reduce the amount of redundant code. It loads faster, looks nicer and is easier to update.
- Forward Compatability - When you make a website in CSS you may have to add a few "hacks" to make it work in some of the browsers out right now. But the fact is as browsers continue to progress your code will continue to work perfectly. This way you can focus on style and formatting, instead of having to re-design or recreate your sites.
- Beautiful Designs - CSS creates amazing designs. It is finally bringing back the simple elegant (apple) style of web layout. Too often with tables designs get heavy and complex. Now CSS allows for the perfect form and functionality. For instance, take a look at the
Zen Garden or
Stop Design to see what I mean. These sites look great, the content is easy to read, and they still have the "element of design".
- CSS works better with standards - CSS will validate better when created correctly. It makes websites work well in all browsers and platforms. No longer do we have to design specific to one browser or another. This will only get better the more browser updates that come out.
Those are a few of the benefits. I definitely suggest if you don't design in CSS yet to move in that direction. The control you have over your content amazing. And of course, you still mock up the design in photoshop, and you still slice your images accordingly. But now instead of sticking them into tables and bloated code. You code out a style sheet. It's a bit tricky at first, but well worth it.