Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

border="0"

 
Randall Twede
Ranch Hand
Posts: 4371
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when you set border="0" in an image tag used as a link there is no border. but after link is visited it has one. why? can it be "fixed"?
it is just that one of my image links is a transparent animated gif and the border ruins the look.
[ August 30, 2003: Message edited by: Randall Twede ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i think if you apply css to the links for visted, active, etc..... with border = 0.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it really a border that you are talking about, or just the "focus" indication that the browser draws?
bear
 
Randall Twede
Ranch Hand
Posts: 4371
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bear,
oh you are right...if i click another link then click on back button it is gone. guess its not really a problem.
[ August 31, 2003: Message edited by: Randall Twede ]
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can add onclick="this.blur()" on the image tag and it will not show.
 
Randall Twede
Ranch Hand
Posts: 4371
3
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hmmm...added what you suggested to the image tag and it didnt work, but added it to the anchor tag and it did
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic