• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 36
  • Last Modified:

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.

2 Solutions
Kim WalkerWeb Programmer/TechnicianCommented:
Yes. You can use the attribute selector.
input[name=targeted_name] { color: #123456; }

Open in new window

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

Similar Question answered
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.

Join & Write a Comment

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now