css - How to change a link behavior on desktop and mobile? -


i have link should link phone number in mobile size tel:+989203022438 in desktop link contact page. possible?

sure, need have 2 elements. first element (for mobile) , have text inside of telephone number. second element (for desktop) link contact page. next, you'll use css media queries set should show, this:

#phonecontact {     display: none; }  @media screen , (max-width: 500px) {     #phonecontact {         display: block;     }     #desktopcontact {        display: none;     } } 

Comments

Popular posts from this blog

php - Embed BBCode within itself not working -

three.js - how to load gltf in three JS -

sql server - T-SQL: Access DB objects in same schema without qualifying? -