...">

CSS multiname reference (e.g. "name.secondname")

Possible duplicate:
CSS selector with period in ID

HTML:

<input id="name.secondname" ... > 

How to define CSS style for 'name.secondname'?

 #name.secondname { ... } 

does not work.

+4
source share
2 answers

Eliminate the point with \

For instance:

 #name\.secondname { } 
+6
source

You need to run like this:

 #name\.secondname 

I should note that this seems to have been asked before: CSS selector with period in ID

+6
source

All Articles