user1212 user1212 - 1 year ago 96
CSS Question

handling css id and classes with spaces

I have a paragraph as

<p id="para one" class="paragraph one">Content</p>

How does one represent the id and class with spaces in the css

When I use


It does not work with the css above.

Answer Source
class="paragraph one" 

actually represents two different classes

id="para one"

won't work, but you'll probably end up having an actual id of para

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download