1
Currently I work with three queries always based on the minimum width and maximum width of the screen. The Mobile set from 250px to 480px, the Tablet put as 481px to 1023px and the Desktop put from 1024px.
Currently on the devices I tested are working with only small bugs that do not disturb the use but friends and developers have reported problems when the responsibility of the site. The website is as follows:
http://webt.pe.hu/bluc/index.html
this is a test domain, and I leave a NOTE, I have only the Cortana page ready, so click on the Port to see the body of the site.
The big question is being in the statement of these queries, I have to declare it based also at the time? What is the best way to declare them? And in html, I can use some meta to help with that?
EDIT
/* ----------------------------------------------------------------------------------------- */
/* Telas Pequenas */
@media (min-width: 249px) and (max-width: 480px)
{
}
/* ----------------------------------------------------------------------------------------- */
/* Telas Médias */
@media (min-width: 481px) and (max-width: 1024px)
{
}
/* ----------------------------------------------------------------------------------------- */
/* Telas Grandes */
@media screen and (min-width: 1024px)
{
}
/* Geral */
Please state what problem you are having: desired behavior and current behavior, and if possible the relevant code snippets. Otherwise, we would have to go around looking for problems, not knowing what to look for (unless the problem was obvious, of course). P.S. Link is correct? Here is giving 404.
– mgibsonbr
I fixed the link.. I really did not describe error because I do not know what is the error, I tested on two totally different desktop, a wide screen and another square monitor and in both worked perfectly, the same happened with a tablet, and 3 smartphones of different resolutions. But some friends and developers I asked to access had viewing problems.
– Leonardo
Soon I imagine that the problem is in the media queries that I am using, I gave details of it in the topic and to see them in action is to just enter the link, give a Ctrl+U and open any style file, with the exception of bootstrap, Hover and font, which are frameworks.
– Leonardo
I just wanted to know what is the most suitable queries for a responsive site and if there is any meta that helps in this, I left the link to the site just to see if they find bugs and also have full access to the code.
– Leonardo
It is not feasible to look your entire website for errors. Look this photo how it looks on my monitor. In the file I saw,
index.css
, You don’t treat resolutions above 1024. And this is exactly what my monitor fits. If you want a more complete answer, I’ll have time to help you better tonight– Randrade
@Leonardovilarinho Did your friends tell you what Operating System and browser they are using? I didn’t notice anything unusual or that could be improved on the few css I saw (I only opened a few, I didn’t look at all), but I noticed that the layout of the elements varies with the height of the window (Win7, Chrome: http://i.stack.Imgur.com/b9MPJ.jpg). Is it your goal that the screen doesn’t roll? If it is, your question about "declare based also on height" probably would have as answer "yes" (except that I have no experience with this type of screen to opine).
– mgibsonbr
I found the mistake really, is that I set this page I did but do not set queries for height, I will see what I do, create another without being fixed or not.. By clicking the Cortana ball the site works ne normal?
– Leonardo