Wrox Programmer Forums
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 16th, 2005, 03:49 AM
Authorized User
Join Date: Jul 2003
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Default CSS question

I designed a CSS,like follows:
.Ex:hover { text-decoration: underline; font-size: 9pt; color: #ff0000}

Then I use this CSS in following code:

<img src="test.jpg" class="Ex">

when I click it, I find the img has a dashed line around it.
How to got rid of it?

Thanks in advance!

Old September 16th, 2005, 01:02 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts

Hi! :)

Do you really get the dotted outline if the image isn't linked? If it really is the focused link outline you are talking about it's possible to get rid of it with JavaScript in IE. I don't think you should though, since it's an accessibility feature of the browser. Tabbing through links without it is no fun. I use it constantly even if I use my mouse most of the time.

I don't post a script because I don't know an unobtrusive one off the top of my head (the worst ones disable keyboard navigation altogether). If no one else posts one, you can try to google something like this:

If I guessed wrong, please give us more details. The code you posted doesn't give any kind of border on it's own.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Html CSS question bekim All Other Wrox Books 3 August 24th, 2009 02:41 AM
3-Column CSS Question kwilliams CSS Cascading Style Sheets 2 April 8th, 2008 02:33 PM
Question on First CSS savoym CSS Cascading Style Sheets 2 February 1st, 2007 10:02 AM
Very Basic Question on Spacing with CSS guynorton CSS Cascading Style Sheets 4 December 14th, 2006 04:33 PM
Tables vs. layers (CSS question) jacob HTML Code Clinic 6 December 1st, 2003 06:21 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.