Hi,
If I apply the "onlytablet" suffix to a module (in this case in the mainbody position) it makes the module disappear in all 3 display modes...Have tried on desktop, Ipad and iphone...
Dave
Konrad M wrote:Hi, probably you didn't add space before suffix name. Please try this " onlytablet".
dziudek wrote:Additionally please remember that suffixes like " onlytablet" depends from browser width not the device. So if you have a browser which loads with tablet.css then it will show the module with this suffix even if it is a desktop/tablet/mobile device.
.notablet {
display: block;
}
.nomobile {
display: none;
}
.onlytablet {
display: none;
}
.onlymobile {
display: block;
}
.box.notablet {
display: block!important;
}
.box.nomobile {
display: none!important;
}
.box.onlytablet {
display: none!important;
}
.box.onlymobile {
display: block!important;
}
dziudek wrote:You're right - now I see the problem - after testing this feature we have changed the order of the CSS files, what cause that now in the tablet.css and mobile.css should be placed more specific selectors. Please change in the both files (tablet.css and mobile.css) this code:
- Code: Select all
.notablet {
display: block;
}
.nomobile {
display: none;
}
.onlytablet {
display: none;
}
.onlymobile {
display: block;
}
to:
- Code: Select all
.box.notablet {
display: block!important;
}
.box.nomobile {
display: none!important;
}
.box.onlytablet {
display: none!important;
}
.box.onlymobile {
display: block!important;
}
dziudek wrote:Sorry but it must works - I've made these changes and I've tested it. The only problem can be related with fact that the tablet.css is loaded for smaller widths than mobile.css what cause that it never work.
dziudek wrote:Sorry but the url: http://www1.aerosolpalnet.com/site5 and even http://www.aerosolpalnet.com/site5 don't work.