How to create a CSS3 style rule for an inline image that contains a usemap

How do I create a style rule for inline images that contain the usemap attribute and set the border width to 0 pixels?

html code:

  <img src="locks.jpg" alt="lock links" width="510" height="110" usemap="#locks"/>
                  
                  <map name="locks">
                        <area shape="circle" coords="52, 52, 43"
                        href="history.htm" alt="History" />
                        <area shape="circle" coords="155, 52, 43"
                        href="enigma.htm" alt="Enigma" />
                        <area shape="circle" coords="255, 52, 43"
                        href="algo.htm" alt="Algorithms" />
                        <area shape="circle" coords="355, 52, 43"
                        href="single.htm" alt="Single Key" />
                        <area shape="circle" coords="455, 52, 43"
                        href="public.htm" alt="Public Key" />
                  </map>
cookiejarAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
This should do it.
<img src="locks.jpg" alt="lock links" width="510" height="110" style="border:0;" usemap="#locks"/>

Or use "img {border:0}" in your style sheet.
0
cookiejarAuthor Commented:
By using "img {border:0}", how do I reference only inline images that contain the usemap attribute? In this case, usemap="#locks".
0
Dave BaldwinFixer of ProblemsCommented:
One of two way.  Just put it inline like my first example or make a new 'class' for just those images.

img.umaps {border:0}

<img class="umaps" src="locks.jpg" alt="lock links" width="510" height="110" usemap="#locks"/>

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
CSS

From novice to tech pro — start learning today.

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.