Kamis, 22 November 2007

Re: [JavaScript] Link decoration

On Nov 21, 2007, at 2:28 PM, L. Miller wrote:

> Newbie here. Please be gentle.
>
> I have an image that is a link. But, I do not want there to be any
> decoration around the image for it being a link, or a visited link. In
> the css, what would I use to specify this?
>
> For text, I think that it would be text-decoration:none
>
> Thank you,
> Linda
>


Hey Linda,

the css to affect the border of images would be:

img { border: none; }

to specify images used as links, nest the rule like so:

a:link img { border: none; }

As an aside, the following rule, which you mention,

a { text-decoration: none }

will remove the _underline_ from links on your page. Be careful
about doing that. Studies have shown that most users use the
underlying as a primary cue when looking for links on a page. I
would, as a rule, not remove the underline from links. If you do,
strongly consider making the link blue. Changing the color *and*
removing the underlying is a recipe for confusion in most cases.


Good luck, and let us know if you have any other questions.


Visit http://aiaiai.com for more groups to join
Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/JavaScript_Official/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/JavaScript_Official/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

Tidak ada komentar: