You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Targetting iPhone, Android, iPad and tablets with media queries
/* iPhone 5 and newer (landscape) + Androids */@media all and (max-width:568px),only screen and (min-device-width:640px) and (max-device-width:1136px) and (-webkit-min-device-pixel-ratio:2) {
.mobile-only {
display:block;
}
td.mobile-only {
display:table-cell;
}
.desktop-only {
display:none;
}
}
/* iPhone 4 and older (landscape), most Androids */@mediaonly screen and (max-device-width:480px) {
.class {
display:block;
}
}
/* iPhone 4 and older (landscape), most Androids ** ALT if you want visible in browser */@media all and (max-width:480px) {
.class {
display:block;
}
}
/* iPhone 4 and older (portrait), most Androids */@mediaonly screen and (max-device-width:320px) {
.class {
display:block;
}
}
/* iPhone 4 and older (portrait), most Androids ** ALT if you want visible in browser */@media all and (max-width:320px) {
.class {
display:block;
}
}
/* iPad [portrait + landscape] */@mediaonly screen and (min-device-width:768px) and (max-device-width:1024px) {
.class {
display:block;
}
}
/* Desktop overrides */@media all and (min-width:568px) and (min-device-width:769px) {
.mobile-only {
display:none;
}
.desktop-only {
display:block;
}
.btn.desktop-only {
display:inline;
}
th.desktop-only,td.desktop-only {
display:table-cell;
}
}
/* Android Devices *//* Put CSS for low density (ldpi) Android layouts in here */@mediaonly screen and (-webkit-device-pixel-ratio:.75){
.class {
display:block;
}
}
/* Put CSS for medium density (mdpi) Android layouts in here */@mediaonly screen and (-webkit-device-pixel-ratio:1){
.class {
display:block;
}
}
/* Put CSS for high density (hdpi) Android layouts in here */@mediaonly screen and (-webkit-device-pixel-ratio:1.5){
.class {
display:block;
}
}
/* IE9+ and other browsers */ulli:first-childp {
display:block;
}
ulli:last-child {
display:none;
}
/* IE8 -- IE8 does NOT support last-child */ulli:first-child+p {
display:block;
}