I've found a lot of threads here talking about CSS and mobile screens.
After searching, I couldn't find a solution for some devices. For example: Motorola Moto G4 Plus uses FULL HD width(1080px), only bootstraps detect the xs-view configuration.
Styling and trying and trying I couldn't get some styles set up.
So, how can I make the same procedure as Bootstrap to set up my styles and in the general procedure for all devices?
Please, only CSS or as much JS(if it possible, don't), the same as bootstrap.
I've tried the @media screen and @media all queries. Doesn't work.
Thanks for reading.
The @media rule is used to define different style rules for different media types/devices.
If it doesnt work, check your code. you might have made a typo somewere.
Example:
@media only screen and (max-device-width : 640px) {
/* Styles */
}
@media only screen and (max-device-width: 768px) {
/* Styles */
}
Earlyer post: How to code CSS media queries targeting ALL mobile devices and tablets?
W3schools: http://www.w3schools.com/cssref/css3_pr_mediaquery.asp