Basic CSS question

BrandontheGreat

Links @ helpmyrank.com
Aug 24, 2008
866
4
18
everywhere
If this is the shown in the source code:

Code:
<div id="edit-name-wrapper" class="form-item">

How do I call it in the stylesheet? Is it #edit-name-wrapper. form-item? Tried that but it didn't work.
 


Since IDs are unique (meaning you shouldn't have more than one item with the same ID), you would use that as a selector, unless of course the class would modify that differently (then you'd use both, separate from the class-only declaration).

Depends on what you're trying to do.