Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Text colour help with CSS please

Reply
Thread Tools

Text colour help with CSS please

 
 
Neil
Guest
Posts: n/a
 
      11-15-2003
Hi,
I have one set of <font> tags that I don't know how to get rid of with
the style sheet, and I was wondering if you might be able to help
please?

Here's the style sheet stuff that's relevent......

div.home{
position:absolute;
left:490px;
top:175px;
width:230px;
height:252px;
z-index:5;
font-family: Arial, Helvetica, sans-serif;
font-size: 18px;
font-weight: bold;
text-align: center;
}

........As you can see, the style sheet is responsible for the
postioning of the layer, which contains text. Here's the text.........

<div class="home"><font color="#FFFF00">Maximise I.T.</font> is a
Multimedia Information Technology entity that delivers and brokers
services across the IT spectrum. Our prime philosophy is based on
constant consultation with all involved in any given project and to
work together as a team with clients to deliver an outcome that
reflects the desired outcome to the Max</div>

You can see that I want the words "Maximise I.T." to be yellow. The
rest of the text is the default black colour. How can I make those
words yellow in the style sheet, without disturbing the layer so that
I can get rid of the <font> tags????

Thanks for looking
Neil
 
Reply With Quote
 
 
 
 
Leonard Blaisdell
Guest
Posts: n/a
 
      11-15-2003
In article <>, Neil
<> wrote:

> Here's the style sheet stuff that's relevent......
>
> div.home{
> position:absolute;
> left:490px;
> top:175px;
> width:230px;
> height:252px;
> z-index:5;
> font-family: Arial, Helvetica, sans-serif;
> font-size: 18px;
> font-weight: bold;
> text-align: center;
> }


Looks like a job for span.
Add span.yellow {color: #ffff00; background: "whatever your background
is";} to the stylesheet.

> <div class="home"><font color="#FFFF00">Maximise I.T.</font> is a
> Multimedia Information Technology entity that delivers and brokers


Change <font color="#FFFF00">Maximise I.T.</font> to <span
class="yellow">Maximise I.T.</span> and you should be in business.

leo

--
<http://web0.greatbasin.net/~leo/>
 
Reply With Quote
 
 
 
 
altamir
Guest
Posts: n/a
 
      11-15-2003
Neil <> wrote in
news::

> How can I make those words yellow in the style sheet, without disturbing
> the layer so that I can get rid of the <font> tags????


<div class="home"><span>Maximise I.T.</span>...

and in the stylesheet:

div.home span {color:yellow}

you can also use 'strong' or 'em' elements instead of 'span'.

--
altamir
 
Reply With Quote
 
Neil
Guest
Posts: n/a
 
      11-15-2003
On 15 Nov 2003 10:21:53 GMT, altamir <> wrote:

>Neil <> wrote in
>news: :
>
>> How can I make those words yellow in the style sheet, without disturbing
>> the layer so that I can get rid of the <font> tags????

>
><div class="home"><span>Maximise I.T.</span>...
>
>and in the stylesheet:
>
>div.home span {color:yellow}
>
>you can also use 'strong' or 'em' elements instead of 'span'.


Perfect. Thank you

Neil

 
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
What is the point of having 16 bit colour if a computer monitor can only display 8 bit colour? How do you edit 16 bit colour when you can only see 8 bit? Scotius Digital Photography 6 07-13-2010 03:33 AM
Changing the font of text in richtextbox without affecting thepresent colour of text Gouri.Mahajan7@gmail.com ASP .Net 0 06-05-2008 08:16 AM
Getting default colour for <input> - or just the old colour jodleren Javascript 2 01-12-2008 02:57 PM
masterpages vs. CSS or Masterpages with CSS??? help me out please! Nick Wouters ASP .Net 5 05-08-2006 10:19 AM
Colour blindness, photography and colour management Tor Lillqvist Digital Photography 12 05-24-2004 08:57 AM



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