# I need colour!

Discussion in 'Computer Science & Culture' started by Dearprudence, Jan 12, 2004.

Not open for further replies.
1. ### DearprudenceGuest

(can't delete topic)

Last edited by a moderator: Feb 4, 2004

3. ### EnderRegistered Senior Member

Messages:
294
Code:
< Body Bgcolor="######" Text="######" Link="######" Vlink="######">

5. ### curioucityUnbelievable and oddRegistered Senior Member

Messages:
2,429
And to add, even though I'm not sure what it does, is this

Messages:
13,433

8. ### StryderKeeper of "good" ideas.Valued Senior Member

Messages:
13,105
CSS or Cascading Style Sheets isn't apart of the original HTML language, but something else that is used in addition.

The stylesheet can even be placed into a seperate .txt file and then linked by the relevant tag to allow text to be altered, or the CSS information can be placed into the HTML in a relevant TAG.

It's even possible to place styles directly into any HTML tag through the use of it's STYLE element.

example of a stylesheet:
Http://www.chatsoba.com/chatsoba.css

Any HTML files that use this sheet would require the following:
(Note that there are spaces have been inserted after the < and before the >
as the completed tags kept malforming the post)
Code:
...< HEAD >
REL="stylesheet" TYPE="text/css" >
< TITLE >...

If you were to imbed the stylesheet within the HTML directly (So you don't have an external file)

Code:
...</TITLE>
< STYLE TYPE="text/css" >
A:visited { color:#033333 }
A:hover { color: white  }
A:active { color:#004000 }
.Sm {color:=green }
< /STYLE >

That btw will change Anchors in a document.

Both of those examples need you to identify what elements within the document are effect. Where you can either use CLASS or ID to identify the element. (ID is for a single element, CLASS is for a number of elements)

The following ties in with the above code:
Code:
< P ALIGN="RIGHT" CLASS="Sm">Hi< /P >

Lastly it's possible to do away with adding a stylesheet or style entry all together, although if compiled for a large number of entries, your better off with the above methods.

Code:
< P STYLE="color:green;background:red;text-decoration:overlined:font-family:Arial">Hi again< /P >
</P>

I doubt these examples will be that helpful without a bit more understanding, so you could try:

http://www.w3.org/Style/CSS/learning (This takes a while to load as it's alot and in use alot)

http://www.dynamicdeezign.com/css/index.html (this is a goodone)