views:

134

answers:

3

of course please tell me that css is better and faster or master pages for web layout and graphic design .

+7  A: 

They are complementary, you should learn both and use them together.

Alejandro Mezcua
A: 

You master page will provide an HTML template. This HTML template should link in a CSS file that will style your content. So you should use both, at the same time.

Squeegy
A: 

Ah. i think i am now understanding your question: "please give me some logical reason why to use CSS for layout over shoving hard coded layout (tables?) into the master page?"

I hear that question from many people who jump into web programming via a windows background.

Layout in the web world has far greater consequences than windows programming due to a few major points:

  1. Different browsers render html differently.
  2. For the Blind and Disabled, certain brute force techniques hinder accessibility, and/or tab based access.(the "Why the heck did that control get focus?!")
  3. Layout adjustments. Wow. this one is huge. when you have a form that takes a lot of user input, it is WAY easier to adjust if a label appears to the left or top of a control with a few simple css classes.

Plus, one thing many people forget about predefined CSS libraries is that they are Class Libraries for UI. just understanding standard methods of wrapping controls can greatly improve your layout issues, and since most predefined CSS libraries use the same class name, you can swap them out to get an entirely different look.

N8