Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > CSS > CSS Cascading Style Sheets
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 16th, 2005, 03:49 AM
Authorized User
 
Join Date: Jul 2003
Location: , , .
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!


Reply With Quote
  #2 (permalink)  
Old September 16th, 2005, 01:02 PM
Friend of Wrox
Points: 1,315, Level: 14
Points: 1,315, Level: 14 Points: 1,315, Level: 14 Points: 1,315, Level: 14
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: , , .
Posts: 425
Thanks: 0
Thanked 3 Times in 3 Posts
Default

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:
http://www.google.com/search?q=javas...es+dotted+line

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

--
http://yupapa.com
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:17 PM.


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