Css!?

liunx

Guest
Hello,

I'm a newbie in CSS and XML. I'm reading some tutorials about CSS but there are still some undefined ideas for me:

- Where should I use CSS?
- What is the relation between CSS and XML?

I'm working on a webdesign project which requires changing the style of the website from time to time. Some people told me that use CSS to create your webpage style. But how?!

Thanks :) :cool:There is no direct link between CSS and XML. There IS a relationship though in that the visual presentation of XML documents can be altered (styled) with CSS as long as the viewing application understands how to do it. The last time I tried it the Gecko browsers could, IE couldn't. That may have been pre-IE 6 though.

I found the Code Notes (<!-- m --><a class="postlink" href="http://www.codenotes.com/">http://www.codenotes.com/</a><!-- m -->) XML book to be useful in understanding the relationship and even learned a little about CSS selectors from it. As far as a great overview on the how and why of the current ideas in web design I don't think you can beat Jeffrey Zeldman's 'designing with web standards' (<!-- m --><a class="postlink" href="http://www.zeldman.com/dwws/">http://www.zeldman.com/dwws/</a><!-- m -->).Thank you ray326...

But still.. I'm lost!! I donno why should I use CSS?! HTML is doing everything for me as the design part of my project but what is the role of CSS?
:confused:Originally posted by HSN
Thank you ray326...

But still.. I'm lost!! I donno why should I use CSS?! HTML is doing everything for me as the design part of my project but what is the role of CSS?
:confused: just say you have a site with about 100 pages, like an article site, and then after 6 months, 1 year you get bored with the site, or you just want to change one part of it. You would have to go through every single of those 100+ pages and change the font, border, size etc. instead you could just open your css file wherever you included it (eg in a php file, css file html file etc) and just change one line of code and instantly you have changed a hundred pages of work, it also saves allot of space because there is not lots of code in each document, which also saves a bit of bandwidth.Originally posted by HSN
But still.. I'm lost!! I donno why should I use CSS?! HTML is doing everything for me as the design part of my project but what is the role of CSS?
:confused:
HTML = content
CSS = presentation
That's why I recommend you start with Zeldman's book. He explains WHY you do it and HOW you do it.Oh thanks guys...
dera, now I undrestand it clearly! It's like the idea of preprocessors in C programming.

ray326, does Zeldman's give me everything? :rolleyes:What do you think about this one:

Eric Meyer on CSS (<!-- m --><a class="postlink" href="http://www.amazon.com/exec/obidos/tg/detail/-/073571245X/qid=1087104524/sr=8-1/ref=pd_ka_1/104-5846421-3611119?v=glance&s=books&n=507846">http://www.amazon.com/exec/obidos/tg/de ... s&n=507846</a><!-- m -->)I don't own it but I know for a fact it's good. Eric Meyer is simply one of the most respected names on the subject of CSS.Originally posted by HSN
It's like the idea of preprocessors in C programming.

ray326, does Zeldman's give me everything? :rolleyes:
I'm a C programmer and I'd have to say no it's not like that.

It depends on your definition of "everything" but I'd say no, Zeldman doesn't give you everything. Please give me an example of a single book that embodies the total knowlege base required for some specific (religion unrelated) domain. Some folks say Zeldman+Meyer come close.Originally posted by ray326
I'm a C programmer and I'd have to say no it's not like that.

It depends on your definition of "everything" but I'd say no, Zeldman doesn't give you everything. Please give me an example of a single book that embodies the total knowlege base required for some specific (religion unrelated) domain. Some folks say Zeldman+Meyer come close.
bout the encyclopedia? but all the volumes stuck togetha. or the telephone directory explains pritty much how to use a phone and numbers to call.Originally posted by ray326
That's why I recommend you start with Zeldman's book. He explains WHY you do it and HOW you do it. I've heard some pretty crappy reviews 'bout his book. Something about him tryin' to be funny and wasting a bunch of your time with his retarded ramblings. That's what I heard on the Amazon reviews, but I don't own the book myself.Originally posted by Daniel T
I've heard some pretty crappy reviews 'bout his book. Something about him tryin' to be funny and wasting a bunch of your time with his retarded ramblings. That's what I heard on the Amazon reviews, but I don't own the book myself.
Well it isn't a reference and it isn't a text book and it isn't a "how to make 10 slick Flash web sites" so most of today's web developers might have some trouble with it. It makes you think and it requires more than a 10 second attention span so that leaves out the current crop of script kiddies but it makes a solid case about why you should build sites correctly (invaluable with managers and clients) and then shows you how to do it and when not to do it. And, yes, Zeldman is a good writer so it's entertaining, too.Originally posted by dera
bout the encyclopedia? but all the volumes stuck togetha. or the telephone directory explains pritty much how to use a phone and numbers to call.
The encyclopedia is called <!-- m --><a class="postlink" href="http://www.w3.org/">http://www.w3.org/</a><!-- m --> and it's stuck togetha alright but it's not complete without also knowing what's on <!-- m --><a class="postlink" href="http://www.freesoft.org/CIE/RFC/">http://www.freesoft.org/CIE/RFC/</a><!-- m --> and <!-- m --><a class="postlink" href="http://www.iana.org/assignments/media-types/">http://www.iana.org/assignments/media-types/</a><!-- m --> so TANSTAFL.I think Zeldman's book is what I'm looking for.
I hate:

"how to make 10 slick Flash web sites"

I wanna undrestand the idea behind CSS and then coding is not a big deal.
:)
 
Back
Top