Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > empty links?

Reply
Thread Tools

empty links?

 
 
ArChAs
Guest
Posts: n/a
 
      03-12-2007
hi.
i have few links with background image (rollover effect). i did empty
links "<a class="aaa" href="bbb"></a>". i just couldn't do <a><img></
a> becouse of my rollover in background. i think it isn't so correct
to do this way.
how to change it properly?

 
Reply With Quote
 
 
 
 
Jonathan N. Little
Guest
Posts: n/a
 
      03-12-2007
ArChAs wrote:
> hi.
> i have few links with background image (rollover effect). i did empty
> links "<a class="aaa" href="bbb"></a>". i just couldn't do <a><img></
> a> becouse of my rollover in background. i think it isn't so correct
> to do this way.
> how to change it properly?
>

For it to be a traversable link, there has to be something between the
opening a closing tag. Remember background is just decoration *not* content!

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
 
ArChAs
Guest
Posts: n/a
 
      03-12-2007
On 12 Mar, 17:36, "Jonathan N. Little" <(E-Mail Removed)> wrote:
> ArChAs wrote:
> > hi.
> > i have few links with background image (rollover effect). i did empty
> > links "<a class="aaa" href="bbb"></a>". i just couldn't do <a><img></
> > a> becouse of my rollover in background. i think it isn't so correct
> > to do this way.
> > how to change it properly?

>
> For it to be a traversable link, there has to be something between the
> opening a closing tag. Remember background is just decoration *not* content!
>


yes, i know so i want to change it. i used this:
http://wellstyled.com/css-nopreload-rollovers.html but without text on
buttons. help me, please!

 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      03-12-2007
ArChAs wrote:
> On 12 Mar, 17:36, "Jonathan N. Little" <(E-Mail Removed)> wrote:
>> ArChAs wrote:
>>> hi.
>>> i have few links with background image (rollover effect). i did empty
>>> links "<a class="aaa" href="bbb"></a>". i just couldn't do <a><img></
>>> a> becouse of my rollover in background. i think it isn't so correct
>>> to do this way.
>>> how to change it properly?

>> For it to be a traversable link, there has to be something between the
>> opening a closing tag. Remember background is just decoration *not* content!
>>

>
> yes, i know so i want to change it. i used this:
> http://wellstyled.com/css-nopreload-rollovers.html but without text on
> buttons. help me, please!
>

Yes, but how is the visitor suppose to know what the link is to? HINT:
they may not be able to see your image... text-only or screen-reader...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
David Dorward
Guest
Posts: n/a
 
      03-13-2007
ArChAs wrote:
> i have few links with background image (rollover effect). i did empty
> links "<a class="aaa" href="bbb"></a>". i just couldn't do <a><img></
> a> becouse of my rollover in background. i think it isn't so correct
> to do this way.


Use an <img> and write your rollover code to change that.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
ArChAs
Guest
Posts: n/a
 
      03-13-2007

Jonathan N. Little napisal(a):
> ArChAs wrote:
> > On 12 Mar, 17:36, "Jonathan N. Little" <(E-Mail Removed)> wrote:
> >> ArChAs wrote:
> >>> hi.
> >>> i have few links with background image (rollover effect). i did empty
> >>> links "<a class="aaa" href="bbb"></a>". i just couldn't do <a><img></
> >>> a> becouse of my rollover in background. i think it isn't so correct
> >>> to do this way.
> >>> how to change it properly?
> >> For it to be a traversable link, there has to be something between the
> >> opening a closing tag. Remember background is just decoration *not* content!
> >>

> >
> > yes, i know so i want to change it. i used this:
> > http://wellstyled.com/css-nopreload-rollovers.html but without text on
> > buttons. help me, please!
> >

> Yes, but how is the visitor suppose to know what the link is to? HINT:
> they may not be able to see your image... text-only or screen-reader...
>


yes i know that. you wrote what's wrong but i need the solution of
this problem.....

 
Reply With Quote
 
Jonathan N. Little
Guest
Posts: n/a
 
      03-13-2007
ArChAs wrote:

> yes i know that. you wrote what's wrong but i need the solution of
> this problem.....
>


Simple put TEXT or at least an image within the A element! The A needs
to have content to be accessible.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DetailsView ASP Control and an empty field not an empty record. ButlerDJIAM ASP .Net 0 11-09-2006 06:40 PM
Altova Mapforce - xml 2 xml map: empty elements output although input element is not empty Lukas XML 3 11-10-2005 02:25 PM
empty lists vs empty generators Brian Roberts Python 12 05-04-2005 08:59 PM
Check if a directory is empty and empty it Marcia Hon C Programming 8 02-14-2004 03:53 AM
empty/non-empty element John XML 1 07-16-2003 10:23 AM



Advertisments