Jump to content

Question regarding symbols

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Guest_soliver1982_*

Guest_soliver1982_*
  • Guests
What do the symbols '#' and '.' signify before an element signify in a stylesheet?

#2
Johnnyboy

Johnnyboy

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
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... :)
:D When things work the way they should it's a wonderful thing! It's the should part that gets me.

#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
These are selectors. Selectors let you define a class.

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.