Checkbox CSS on Windows Phone not showing -
I am creating a responsive website and using a checkbox to show / hide the menu on mobile devices. CSS style (background image, color etc.) is running Windows Phone 8, except IE browsers I have tried working fine on all mobile browsers.
This is CSS:
input # show-menu [type = checkbox] {width: 48px! Important; Height: 48px! Important; Background: Transparent URLs (images / mobile_menu) No-duplex center center; Background-size: 15px 16px; -WebKit-Presence: None; float right; Boundary-radius: 0; Display area; } Input # Show-Menu [Type = Checkbox]: Checked {Background: # 153e69 Url (Images / Mobile_Menu_close) Any repeat center center; Background-size: 15px 16px; } CSS works fine in mobile emulators, even on Windows 8 emulators, but on the actual device (in this case a Nokia Lumia 520) it does not provide CSS.
Tried to attach screen shots but apparently I need 10 reputation points to do this ?? !!
Thank you.
OK, so I've done this myself, who was posted here for someone else That comes to the same issue. Actually you can only & lt; Label & gt; and & lt; Input & gt; to display: any
no need to set html and CSS which works for me:
< Code> & lt; Input type = "checkbox" id = "show-menu" role = "button" & gt; & Lt; Label = "show-menu" class = "show-menu" & gt; Show Menu & lt; / Label & gt; .show-menu {width: 48px! Important; Height: 48px! Important; Background: Transparent URLs (images / mobile_menu) No-duplex center center; Background-size: 15px 16px; -WebKit-Presence: None; -M-presence: none; -Mouse-presence: none; float right; Boundary-radius: 0; Text indent: -999px; Hidden flurry; Display area; } Input # ShowMenu [Type = Checkbox]: Checked ~ .show-menu {background: # 153e69 url (images / mobile_menu_close.png) No-duplex center center; Background-size: 15px 16px; }
Comments
Post a Comment