This content has been marked as final.
Show 2 replies
-
1. Re: Mobile first CSS display: none
Jon Fritz II Mar 14, 2013 8:40 AM (in response to matthew stuart)display:block or display:inline
EDIT: Really, any display:setting that isn't "none"
-
2. Re: Mobile first CSS display: none
Sudarshan Thiagarajan Mar 14, 2013 10:19 AM (in response to matthew stuart)Matthew, you need to write this rule within media-queries.
/*For Mobiles*/
@media and (max-width:360px){
.hidden-mobile{
display:none;
}
And apply (or add to existing) a class .hidden-mobile to the div that you want to hide on mobiles. This rule will kick in only when the user is browsing from a mobile device less than 360px viewport width. In that case, the div with this class wont show up on a mobile phone.




