html - 'Switching' a Tel: link on and off... Preferably CSS only -


i have read in few other posts creating tappable link phone number can done tel: in anchor tag

i implement in responsive website.. this:

<a href="tel://1-555-555-5555">call us! <span>(555) 555-5555</span></a>

(the span tag plan use hide phone# css)

the idea on desktop see "call us! (555) 555-5555", not actual link

but when scale down mobile, see stylized link says "call us!" can click.

i'm sure there way accomplish javascript or jquery... there anyway accomplish css media queries?

note: visual styling no problem.. looking reasonable solution "switching" concept.

thanks in advance!

i think best bet add id anchor tag , through media query can hide on desktop version there no need span.

then non anchor text hide when scaled down through id in media query.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -