Re: Syle Sheets Fonts

by "Beauford.2002" <beauford.2002(at)rogers.com>

 Date:  Tue, 25 Feb 2003 15:27:47 -0500
 To:  "Stephanie Thrasher" <steph(at)omsoft.com>,
"HWG Basics" <hwg-basics(at)hwg.org>
 References:  p1 S0026260871 p12 S00262608712 p13 mom
  todo: View Thread, Original
This is really getting to be more trouble than it's worth. Here's the scoop
now. I have two menu's in two separate frames, both are virtually identical
(except one is vertical, the other horizontal, and the choices are
different). I have the code below in both files, the vertical one works
while the horizontal one doesn't. How can two files exactly the same do
different things?

The only difference in the two files is what is needed within a frame to
make the entries show vertically or horizontally.

<STYLE type="text/css">

BODY, TD { font-family: arial; font-size: 12px; color: white;); }

A  {
 color : White;
 text-decoration : none;
 font: ;
}

A:Visited  {
 color : White;
 text-decoration : none;
 font: ;
}

A:Active  {
 color : White;
 text-decoration : none;
 font: ;
}

A:Hover  {
 color : maroon;
 text-decoration : none;
 font: ;

}

</STYLE>

</HEAD>

<BODY BACKGROUND="images/background/topbg.jpg">    This one is in the top
frame.
<BODY BACKGROUND="images/background/leftbg.jpg">     This one is in the left
frame.

<TABLE>blah, blah, blah</TABLE>

</BODY>
</HTML>


----- Original Message -----
From: "Stephanie Thrasher" <steph(at)omsoft.com>
To: "HWG Basics" <hwg-basics(at)hwg.org>
Sent: Tuesday, February 25, 2003 11:46 AM
Subject: Re: Syle Sheets Fonts


> Yes, add the opening body tag, but as also mentioned by a couple
> of other people, you need to use "font-size" rather than "font"
> and you need to apply it to td as well as body tags:
>
> BODY, TD {  font-family: arial; color: white; font-size: 10pt;
> background:
> url(images/background/topbg.jpg) repeat-x; }
>
>
> > This is the entire document, I don't see where there could be a
> problem.
> > This is just a small munu with 4 items on it that sits in the
> top frame of
> > my site....I could do this another way, but I am trying to
> learn styles
> > sheets and thought this is a good way to start.
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
> >
> > <HTML>
> > <HEAD>
> > <TITLE>Menu</TITLE>
> >
> > <STYLE type="text/css">
> >
> > BODY {  font-family: arial; color: white; background:
> > url(images/background/topbg.jpg) repeat-x; }
> >
> > A  {
> >  color : White;
> >  text-decoration : none;
> >  font : ;
> > }
> >
> > A:Visited  {
> >  color : White;
> >  text-decoration : none;
> >  font : ;
> > }
> >
> > A:Active  {
> >  color : White;
> >  text-decoration : none;
> >  font : ;
> > }
> >
> > A:Hover  {
> >  color : #3A5FCD;
> >  text-decoration : none;
> >  font : ;
> > }
> > </STYLE>
> >
> > </HEAD>
> >
> >
> >
> > <TABLE width="719" cellpadding="0" cellspacing="0" border="0"
> > background="images/background/topmenu.jpg">
> > <TR valign="top">
> > <TD>
> >
> > <TABLE width="719" cellpadding="15" cellspacing="0" border="0">
> > <TR>
> > <TD HEIGHT="70" ALIGN=center>
> >
> > <A HREF="body.php" TARGET="body">Main</A> | <A HREF="body.php"
> > TARGET="body">Menu 2</A> | <A HREF="body.php"
> TARGET="body">Menu 3</A> | <A
> > HREF="body.php" TARGET="body">Menu 4</A>
> >
> > </TD></TR></TABLE>
> > </TR></TABLE>
> >
> > </BODY>
> > </HTML>
> >
> > ----- Original Message -----
> > From: "Keith D Sellars" <Keith(at)webgraffix.com>
> > To: "HWG Basics" <hwg-basics(at)hwg.org>
> > Sent: Tuesday, February 25, 2003 9:39 AM
> > Subject: Re: Syle Sheets Fonts
> >
> >
> > > Sounds to me that you may be having an issue with elements
> overriding the
> > > style.  I don't usually put my font definitions in the body
> declaration,
> > but
> > > rather in a table declaration.  Have you checked www.w3.org
> and validated
> > > this using their CSS validator?  That will probably show you
> what is
> > wrong.
> > >
> > > Thanks,
> > > Keith D Sellars
> > > WebGraffix
> > > www.webgraffix.com
> > >
> > > "Making database sites seem easy"
> > >
> > > ----- Original Message -----
> > > From: "Beauford.2002" <beauford.2002(at)rogers.com>
> > > To: "Keith D Sellars" <Keith(at)webgraffix.com>; "HWG Basics"
> > > <hwg-basics(at)hwg.org>
> > > Sent: Tuesday, February 25, 2003 9:28 AM
> > > Subject: Re: Syle Sheets Fonts
> > >
> > >
> > > > Nope, doesn't work. Like I said, I have used many different
> variations
> > on
> > > > this (including the one below) and nothing works. The font
> size never
> > > > changes. Is size dependant on the font that is being used?
> i.e. could I
> > > > change the below to a 2pt if desired, or a 20pt..... Any
> other thoughts
> > > are
> > > > appreciated....
> > > >
> > > > TIA
> > > >
> > > >
> > > > > Should be this:
> > > > >
> > > > > BODY {  font-family: arial; font-size: 10pt; color:
> white; background:
> > > > > url(images/background/topbg.jpg) repeat-x; }
> > > > >
> > > > > Thanks,
> > > > > Keith D Sellars
> > > > > WebGraffix
> > > > > www.webgraffix.com
> > > > >
> > > > > "Making database sites seem easy"
> > > > >
> > > > > ----- Original Message -----
> > > > > From: "Beauford.2002" <beauford.2002(at)rogers.com>
> > > > > To: "HWG Basics" <hwg-basics(at)hwg.org>
> > > > > Sent: Tuesday, February 25, 2003 1:56 AM
> > > > > Subject: Syle Sheets Fonts
> > > > >
> > > > >
> > > > > > Hi, I am trying to adjust the font size and have tried
> at least 20
> > > > > different
> > > > > > variations of the following with no luck. Can someone
> point out
> > what's
> > > > > wrong
> > > > > > with this.
> > > > > >
> > > > > > BODY { font-family: arial; font: 10pt; color: white;
> background:
> > > > > > url(images/background/topbg.jpg) repeat-x; }
> > > > > >
> > > > > > TIA
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
> >
>
>

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA