D
dorayme
"Jenn said:I wouldn't know where to even begin as far as starting at the beginning to
learn CSS... short of buying a book and spending hours and hours trying to
learn it on my own how to build a website totally via CSS.. I don't think
that'll happen... although I wouldn't mind learning it... Just don't have
enough hours in the day, and I can't spend the off hours working too or I'll
go nuts.
One good way to begin is to get on to the idea of separating
style from content. There is a lot of stuff on this, perhaps,
when you have time and feel like it. It is often recommended for
folk to look at
<http://htmldog.com/>
where you can look into things at whatever level you feel
comfortable with. Here is a paragraph from one of their pages:
"The thing to keep in mind is that HTML and CSS are all about
separating the content (HTML) and the presentation (CSS). HTML is
nothing more than fancy structured content and the visual
formatting of that content will come later when we tackle CSS.
If you have looked at other HTML tutorials, you might have found
that they mention certain things that HTML Dog does not. This is
because many methods are obsolete, non-standard or just plain bad
practice. Getting into the frame of mind of doing things the
right way from the start will turn in to much better results in
the end."
There are many tutorials on CSS at this website.
You mention building "a website totally via CSS". When you get on
to some of the ideas about the roles that HTML and CSS play, it
will sound strange to put it this way. CSS is just a way to style
what is already being said or shown on a webpage via the HTML. It
would be *as* accurate to say one builds a website from the HTML.
When you use tables for layout, this distinction gets very
obscured because tables have such a strong visual presentational
aspect built into them by their very nature. If we were not
visual beings by and large, tables even for the delivery of
paradigm case data as in scientific ones would likely not be
used, there might well be a different sort of element. I am just
saying that it is hard for someone coming from a tables website
building approach to see through this built in technological
bias.
A table in the HTML can strictly remain quite unstyled and un
html attributed. No cellpadding="..." or width="..." or even
border="...". But it is generally pretty hopeless for interesting
layout not to have any extra styling no matter whether it is via
HTML attributes of CSS. By default, tables are shrink to fit and
pretty basic. Not what is usually wanted for nice.
So, as we all do, we add instructions to it so it gets to look
nice. You already have been doing this for a long time. But
strictly, you can have the table plain in the HTML (no attributes
at all or very few) and style it outside the HTML document in a
CSS sheet.
In other words, you don't have to quite give up on your favourite
element, the table element to start using an external style sheet
to get the feel of separating style from content a bit and
getting comfortable with 'building with CSS'.