SarahBear Posted May 17, 2014 Share Posted May 17, 2014 As the title says, on any mobile device, display: none; does not work. It will work when the CSS file is cached, however, when you refresh the URL (in any browser this will request a new version of the file) it appears that it will ignore display: none; calls. I tested this on several emulators. I read somewhere that using both display: none; and visibility: hidden; worked, but I have not seen results for this. Has anyone come across this before, or know a fix/work-around? Link to comment https://forums.phpfreaks.com/topic/288572-mobile-devices-display-none-does-not-work/ Share on other sites More sharing options...
Adam Posted May 17, 2014 Share Posted May 17, 2014 I've never come across this issue before, and I've built a fair amount of web-based mobile apps. Could you provide a link or an example that reproduces the issue? Link to comment https://forums.phpfreaks.com/topic/288572-mobile-devices-display-none-does-not-work/#findComment-1479883 Share on other sites More sharing options...
SarahBear Posted May 18, 2014 Author Share Posted May 18, 2014 I have made a copy on a free hosting site and no longer experience the issues. It either has to do with the PHP displayed content conflicting with it or something else. Either way, I will examine this issue closer, but I believe it is a CSS or server issue because it only occurs every few hard-refreshes now. I will post again if I can not resolve this Link to comment https://forums.phpfreaks.com/topic/288572-mobile-devices-display-none-does-not-work/#findComment-1479890 Share on other sites More sharing options...
mogosselin Posted May 19, 2014 Share Posted May 19, 2014 Really weird behavior. I never experienced that bug before. If you have a smple code, it would be nice Link to comment https://forums.phpfreaks.com/topic/288572-mobile-devices-display-none-does-not-work/#findComment-1480082 Share on other sites More sharing options...
Lalien Posted May 25, 2014 Share Posted May 25, 2014 Could you try hiding it with jQuery? Link to comment https://forums.phpfreaks.com/topic/288572-mobile-devices-display-none-does-not-work/#findComment-1480766 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.