Solved

CSS - Target a field

Posted on 2016-08-17
3
22 Views
Last Modified: 2016-10-13
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
0
Comment
Question by:GileadIT
3 Comments
 
LVL 21

Accepted Solution

by:
Kim Walker earned 250 total points
Comment Utility
Yes. You can use the attribute selector.
input[name=targeted_name] { color: #123456; }

Open in new window

0
 
LVL 9

Assisted Solution

by:Prasadh Baapaat
Prasadh Baapaat earned 250 total points
Comment Utility
Hello,
I answered a similar question ... going thru it will hep you.

Similar Question answered
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now