CSS - Target a field

I have a form with many fields. All the drop down fields use the same css class called .FormsDDMenu. Can I target one of those drop down menus by name and alter the css applied to it? I specifically want to make the background a different color and the border 1 pixel thicker.

Thanks,
Joe
LVL 1
GileadITAsked:
Who is Participating?
 
Kim WalkerWeb Programmer/TechnicianCommented:
Yes. You can use the attribute selector.
input[name=targeted_name] { color: #123456; }

Open in new window

0
 
Prasadh BaapaatWeb Designer & DeveloperCommented:
Hello,
I answered a similar question ... going thru it will hep you.

Similar Question answered
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.