5
I use Media Queries, right, and my layout will have to adapt to various devices like tablets, iphone, smartphones, notebook and Tvs, but I found a problem in the tablet in landscape mode, it has an approximate resolution of 1024x768
, notebook would be 1024x600
. I use Media Queries for the correct tablet and use the max-width
, just remembering that I did "desktop first", soon I will transform it into mobile only I can not differentiate from one to another. Both has the even width
of 1024
, only the height
that is different, and there’s the problem. Follow the model I made for the tablet version.
@media (max-width: 1024px){
#menu ul {
left: 26%;
}
.nomes{
margin-top: 200px;
}
.botao-circulo{
margin-top: 50px;
margin-left:-15px;
}
#header {
height: 750px;
}
video {
transform:scaley(1.8);
}
#bg-video{
position: absolute;
top: 0;
left: 0;
z-index: -50;
/* box-shadow: inset 0px 0px 200px 100px rgba(0,0,0,0.6);*/
}
/******************************************************************************
Icones
******************************************************************************/
.image.ico {
margin-left: 70px;
margin-top: 100px;
}
#fundo-transparente-icones{
left: -300px;
top: 70%;
transform:scale(0.6);
}
.botao-mais input[type="button"],.mais{
margin-left: 175%;
}
.texto-jogos{
margin-top: 200px;
margin-left: 50px;
}
.botaozao input[type="button"],.jogos-botao{
margin-left: 15%;
margin-top: 30px;
}
.botaozao input[type="button"]:hover,.jogos-botao{
background-color: #fff;
color: #333;
transition:0.5s;
}
/*******************************************************************************
Parcerias
*******************************************************************************/
#fundo-transparente-parcerias{
left: -300px;
top: 257%;
transform:scale(0.6);
}
/*******************************************************************************
Team Speak
*******************************************************************************/
#teamspeak-img{
transform:scale(0.7);
/*-webkit-filter:grayscale(100%);*/
z-index: 2000 !important;
}
.team.style-team{
background-repeat: no-repeat;
}
.botoes-team input[type="button"],.btn-sobre-team{
background-color: transparent;
color: #fff;
width: 100px;
height: 50px;
border:3px solid #fff;
text-align: center;
margin-left: -9%;
margin-top: 10px;
border-radius: 6px;
font-family: Gabriola;
font-size: 1.7em;
cursor: pointer;
}
.botoes-team input[type="button"]:hover,.btn-sobre-team{
background-color: #fff !important;
color: #333 !important;
transition:0.5s !important;
cursor: pointer !important;
}
.linha-team{
width: 40%;
margin-top: -10px;
}
#footer .copyright {
left: 38%;
}
}
Only the basic initial medias I intend to use:
- 1280 x 1024
- 1024 x 768
- 768 x 1024
- 480 x 320
- 1680 x 1050
- 1024 x 600
And I have one more problem, I made the Medias Queries for this first resolution 1280x1024
and as soon as I did, the other two stopped working which were the 1024x768 e 768x1024
.
User, your question was a little confusing but I tried to improve it (not negativei), could you put the css used for the other resolutions? Or have you ever thought about using bootrstrap? It would make your job a lot easier...
– Rafael Withoeft
I did not vote negative on her question, but originally her Portuguese was very bad, and I think that’s why she received two votes against. So for the next time, it’s a tip to do a review in Portuguese before posting.
– Victor Stafusa
the same way you use
media queries
for max-width you can use for max-height– Marciano.Andrade
I did not see how the question had originally been published, but the way it is now, in my opinion, is a valid question and does not deserve to be denied
– Rafael Barbosa
thanks for the tip I will review yes it is as speak the hurry and enemy of perfection =3
– Felipe Henrique