html - images visible on responsive mobile/tablets but hidden on desktop -



html - images visible on responsive mobile/tablets but hidden on desktop -

i have fluid grid website i'm designing using dw cs6. trying place click phone call image , click text image want function on mobile device. know possible have images , text hidden on size devices not knowledgeable plenty understand how. have tried add together screen size limitations @ bottom of css did not work either. have code working text or phone call mobile device. :)

would create div class id="mobile"? appreciate direction given. have media queries come standard fluid grid template in dw cs6.

html

<a href="tel:2513676152"><img src="images/callme.jpg" width="100" height="100" alt="click call"></a> <a href="sms:2513676152"><img src="images/textme.jpg" width="100" height="100" a;t="click text"></a>

css

/* dreamweaver fluid grid properties ---------------------------------- dw-num-cols-mobile: 5; dw-num-cols-tablet: 8; dw-num-cols-desktop: 10; dw-gutter-percentage: 25; /* mobile layout: 480px , below. */ .gridcontainer { margin-left:auto; margin-right:auto; width:87.36%; padding-left:1.82%; padding-right:1.82%; } #layoutdiv1 { clear:both; float:left; margin-left:0; width:100%; display:block; } /* tablet layout: 481px 768px. inherits styles from: mobile layout. */ @media screen , (min-width: 481px) { .gridcontainer { width:90.675%; padding-left:1.1625%; padding-right:1.1625%; } #layoutdiv1 { clear:both; float:left; margin-left:0; width:100%; display:block; } } /* desktop layout: 769px max of 1232px. inherits styles from: mobile layout , tablet layout. */ @media screen , (min-width: 769px) { .gridcontainer { width:88.2%; max-width:1232px; padding-left:0.9%; padding-right:0.9%; margin:auto; } #layoutdiv1 { clear:both; float:left; margin-left:0; width:100%; display:block; } }

you need add together media queries css able accomplish this

/* desktop code here */ @media screen , (max-device-width: 800px) { /* mobile code here */ }

html css desktop hidden

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -