CSS

  • Thread starter Thread starter vinnie
  • Start date Start date
V

vinnie

do you think that it's possible to build a nice web site in asp.net
2.0 C# without knowing anything about CSS?
 
vinnie said:
do you think that it's possible to build a nice web site in asp.net
2.0 C# without knowing anything about CSS?

No. If nothing else, CSS provides a very nice formatting model, with a
lot more consistency and flexibility than the deprecated HTML model.

Pete
 
Smithers said:
I agree with Peter. You really should use CSS.

w3schools.com provides excellent and free introductory tutorials.

Here is a link to their CSS tutorial.
http://www.w3schools.com/css/css_intro.asp

And tutorials are great to have, but it's also important to be familiar
with the actual specification:

http://www.w3.org/TR/REC-CSS2/

For what it's worth, 90% of what I know about CSS came straight from the
spec (noting, of course, that 100% of what I know is not even close to
100% of what there is to know :) ). The wording in the spec can be a
little hard to understand sometimes, but I think on the whole it's
actually pretty good.

The one thing you'll want to do is pay VERY close attention to sections
8, 9, and 10. There are some subtle intricasies in how the various
layout options work together, with selection of some options causing
implicit behaviors with respect to others. I have found that whenever
the style description I wrote doesn't seem to be doing what I want, if I
go back and mentally parse the style very strictly according to what the
spec says, I discover my error. Most often, the relevant part of the
spec is in one of those sections.

As an example, layout is fairly easy to understand for the most part, as
long as you're dealing with well-defined attributes relative to some
known reference. But a key aspect of CSS is the way it manages what
that "known reference" is. Section 9.2, "Controlling box generation"
and section 9.3 "Positioning schemes" are critical to understanding
that, and the latter because of the way that positioning attributes can
sometimes affect box generation.

Of course, if you want to take advantage of the cascading aspect of CSS
too, you'll need to understand the sections specific to that. But as I
mentioned, even if all you're doing with CSS is using the formatting
model, it's very useful.

Pete
 
Vinnie,

Of course you can build that without CSS, you don't need C# to build a very
fine website the same is for CSS.

If you want to build a website in Visual Studio you start with ASP.Net where
you tell to use C#. You can even build it with adding yourself any C# code.

However if you want very fine websites, you probably need to learn something
from JavaScript, because that is used at the client side, C# is only used at
the Server Side.

After that Java Script, you can have a look at CSS because then you will see
that you need it if you want to do more. However what has this to do with
C#. This looks for me more to a webdesigning question?

Cor
 
Back
Top