Style-Sheets Page 4 - Understanding Style Sheets (Part 1) |
Now that all the theory's out of the way, how about actually getting down with some of the basic CSS properties available?First on the list <HEAD> CSS offers a number of different ways to specify the colour value here. The simplest is to use one of the sixteen pre-defined colour names available - aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, white, and yellow. You can also specify a hexadecimal colour combination by prefixing it with a #I {color:#0000FF) or a combination of RGB values in absolute or percentage terms, like this:I {color: rgb (0, 0, 255))I {color: rgb (0%, 0%, 100%))Following close on the heels of "color" comes "background-color", which controls the background colour of an HTML element. <HTML> </HEAD> <BODY> <P CLASS="blue"> </BODY> Keep looking at that combination, and you'll make some eye surgeon very, very rich!
blog comments powered by Disqus |
|
|