Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > DIV Element

Reply
Thread Tools

DIV Element

 
 
Wings
Guest
Posts: n/a
 
      05-23-2007
Ran into a problem right off the bat in my learning the DIV element.
Everything I have, and an on-line tutorial, says this should work in making
the font color RED inside the element. It doesn't. (This is just a study
page - not on the internet, but I cut and pasted the code, so this is
accurate).

<HTML>
<HEAD>
<TITLE>Study Page</TITLE>
<STYLE TYPE="text/css">
<!--
..dog
{
font-color : red;
}
-->
</STYLE>
</HEAD>
<BODY>
<DIV CLASS="dog">
This should be in a red font
</DIV>
</BODY>
</HTML>



 
Reply With Quote
 
 
 
 
Beauregard T. Shagnasty
Guest
Posts: n/a
 
      05-23-2007
Wings wrote:

> Ran into a problem right off the bat in my learning the DIV element.
> Everything I have, and an on-line tutorial, says this should work in
> making the font color RED inside the element. It doesn't. (This is
> just a study page - not on the internet, but I cut and pasted the
> code, so this is accurate).


> font-color : red;


color: red;

Don't forget to assign background colors, too.

background-color: white; or whatever

--
-bts
-Motorcycles defy gravity; cars just suck
 
Reply With Quote
 
 
 
 
Wings
Guest
Posts: n/a
 
      05-23-2007
Many thanks. And that led me to see how I was misreading the tutorials.
Cool.
"Beauregard T. Shagnasty" <> wrote in message
news:0p05i.36850$...
> Wings wrote:
>
>> Ran into a problem right off the bat in my learning the DIV element.
>> Everything I have, and an on-line tutorial, says this should work in
>> making the font color RED inside the element. It doesn't. (This is
>> just a study page - not on the internet, but I cut and pasted the
>> code, so this is accurate).

>
>> font-color : red;

>
> color: red;
>
> Don't forget to assign background colors, too.
>
> background-color: white; or whatever
>
> --
> -bts
> -Motorcycles defy gravity; cars just suck


Many thanks. Operator error. Your answer led me to see how I was misreading
the tutorials also. Cool.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
<div ... /> and <div ...></div> K Viltersten ASP .Net 4 03-31-2009 07:33 PM
Element <link> cannot be nested inside element <div> Rick ASP .Net 1 07-19-2007 01:56 PM
How do you Pass Mouse Events through DIV element to the DIV element beneath it? CRPietschmann Javascript 1 04-28-2006 07:28 AM
NS/FF don't change div offsetWidth when div innerHTML is added toand div becomes wider mscir Javascript 3 06-26-2005 04:04 PM
Q: Div A inside Div B is larger than Div B Dwayne Madsen Javascript 1 06-01-2005 03:02 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57