What do the symbols '#' and '.' signify before an element signify in a stylesheet?
Question regarding symbols
Started by
Guest_soliver1982_*
, Jan 02 2007 11:53 AM
2 replies to this topic
#1
Guest_soliver1982_*
Posted 02 January 2007 - 11:53 AM
Guest_soliver1982_*
|
|
|
#2
Posted 02 January 2007 - 12:54 PM
Good question soliver1982... I have no idea, but would like to know the answer as well! Anyone?
Sorry if I got you thinking I actually answered your question... :)
Sorry if I got you thinking I actually answered your question... :)
:D When things work the way they should it's a wonderful thing! It's the should part that gets me.
#3
Guest_Jordan_*
Posted 02 January 2007 - 03:26 PM
Guest_Jordan_*
These are selectors. Selectors let you define a class.
Example:
Example:
<HTML>
<HEAD>
<style type="text/css">
I.choose {color:red; font-size:12px; font-family:arial; text-decoration:underline}
</style>
</HEAD>
<BODY>
<I>This is normal Italics</I><br>
<I class="choose">This is an Italics choose Selector </I>
</BODY>
</HTML>
The # is an ID Selector. Same principle as using the . except they are used when defining an object with a unique ID.


Sign In
Create Account

Back to top










