Eye of Design helps users find information on web design and development along with feature a gallary of works created by Gary R. Hess.
Setting id
ids are very useful in CSS. You should only use them when you are sure you are only going to need to use it one or less times per page, if you need to use it more use classes instead.
id may be used in...
An id may be used in a div, p, body, span, a, table and many other tags.
Setting id in CSS
To set an id in CSS you must type # before the name of the id. An example of this is: #left { margin: 0; padding: 0; }
Using an id in html
To use an id in HTML you must use it as an attribute. An example: <div id="name">. Where name is the name of the id set within your stylesheet.
