[Nfb-web] Web Site Help
Kerry Elizabeth Thompson
uinen at earthlink.net
Wed Nov 15 23:02:12 CST 2006
Hi Marvin,
I can help with your CSS. You say, I think, that you have already set up
a stylesheet, and now want help changing fonts.
If you simply want your page font to display differently from the
browser defaults of your visitors, and therefore consistently for all
visitors, well, you've already done that in your stylesheet.
Let's say you have the following stylesheet uploaded to your webspace
and correctly linked from your page:
body { color: black; background: white; font: 2em arial, sans-serif;
margin: 5em; }
Then your page will display on all CSS enabled browsers, which is most
of them, with black, arial or other sans-serif type of 2 ems size, on a
white background, and with a margin all the way around of 5 ems.
Let's add another line to our stylesheet:
h1 { color: purple; font: bold; }
Now, all your H1 tags will display in purple bold type.
Suppose, though, you want only some H1 tags to display in purple. Then
you need to use a "class," like this:
In the stylesheet you include this line:
h1.purple { color: purple; font: bold; }
while in your HTML pages, every time you want purple, you code your H1
tags this way:
<h1 class="purple">Heading Text</h1>
All H1 tags of class purple will now display as purple.
If you want the visitor to be able to choose amongst different
stylesheets, with different display characteristics, you need to create
each different stylesheet, upload it to your webspace, and make sure
that the LINK elements in your HEAD are correctly coded to call the
different stylesheets.
I suggest you study the W3C's material on CSS.
Full Property Table
http://www.w3.org/TR/CSS21/propidx.html
CSS 2.1 Specification
http://www.w3.org/TR/CSS21/cover.html#minitoc
There's a great deal of material. I have found it easiest to read up on
each property as I need it, though it is also helpful to have a vague
idea of the big picture as well.
Good luck.
Solidarity and Peace
Kerry
More information about the Nfb-web
mailing list