If it said ‘oneword’, then I could write ‘#oneword’, but what do I write when there is a space in the word?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it contains spaces, it is not legal HTML. You shouldn’t expect this to work. Here is the relevant section of the HTML 4.01 specification.
[EDIT] As others have noted, you can get around this by assigning one or more class names to the div and using a class name to do the selection.