Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / September 2007

Tip: Looking for answers? Try searching our database.

CSS

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vinnie - 28 Sep 2007 21:04 GMT
do you think that it's possible to build a nice web site in asp.net
2.0 C# without knowing anything about CSS?
Peter Duniho - 28 Sep 2007 21:39 GMT
> 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 - 28 Sep 2007 21:58 GMT
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

-HTH

> do you think that it's possible to build a nice web site in asp.net
> 2.0 C# without knowing anything about CSS?
Peter Duniho - 28 Sep 2007 22:39 GMT
> 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
Cor Ligthert[MVP] - 29 Sep 2007 06:22 GMT
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
james - 29 Sep 2007 16:56 GMT
Vinnie,

You can get free style sheets from http://www.freecsstemplates.org/css-templates/.

-James

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.