This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > May 2005 > basic CSS stuff ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author basic CSS stuff ?
Mel

2005-05-14, 7:47 am

i would like to have all my HTML elements to have a
set font say "verdana 12 bold'. unless otherwise specified
in my css file.

*** this should include form elements etc, h1, h2 etc. ***

is this possible ?


Barbara de Zoete

2005-05-14, 7:47 am

On Tue, 10 May 2005 13:01:01 -0400, Mel <mel.m.heravi@hp.com> wrote:

> i would like to have all my HTML elements to have a
> set font say "verdana 12 bold'.


No, you don't :-)
<http://groups.google.com/groups?hl=...ing.stylesheets>
<http://groups.google.com/groups?hl=...ing.stylesheets>
assuming point is what you're after. You didn't specify any length for the
font-size.

> unless otherwise specified
> in my css file.
>
> *** this should include form elements etc, h1, h2 etc. ***
>


You said 'all my html elements'. Why do you think these would be excluded?

If you insist and just for the fun of the example:

* {
font-family:Verdana; /*but please don't*/
font-size:12pt; /*but please don't*/
font-weight:bold; }

Could work. Not tested though.

--
,-- --<--@ -- PretLetters: 'woest wyf', met vele interesses: ----------.
| weblog | http://home.wanadoo.nl/b.de.zoete/_private/weblog.html |
| webontwerp | http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html |
|zweefvliegen | http://home.wanadoo.nl/b.de.zoete/html/vliegen.html |
`-------------------------------------------------- --<--@ ------------'
Beauregard T. Shagnasty

2005-05-14, 7:47 am

Mel wrote:
> i would like to have all my HTML elements to have a set font say
> "verdana 12 bold'. unless otherwise specified in my css file.


Please don't use Verdana, or 12px, or bold for regular content text.
The reasons are discussed in these groups almost daily as to why those
are all a Bad Idea.

> *** this should include form elements etc, h1, h2 etc. ***


body, td, th {
font: 100% sans-serif;
}

will cascade to just about everything.

h1 { font-size: 150%; } etc..
..legalese { font-size: 85%; }

--
-bts
-This space intentionally left blank.
Stan Brown

2005-05-14, 7:47 am

On Tue, 10 May 2005 13:01:01 -0400, "Mel" <mel.m.heravi@hp.com>
wrote:

>i would like to have all my HTML elements to have a
>set font say "verdana 12 bold'. unless otherwise specified
>in my css file.
>
>*** this should include form elements etc, h1, h2 etc. ***
>
>is this possible ?


Yes, but it's a bad idea.

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
"I feel a wave of morning sickness coming on, and I want to
be standing on your mother's grave when it hits."
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews