1
Fala galera!
I made a website for my portfolio and in it I had the following problem:
The site is done on one page only, so I had to adjust the sizes of the sections to the media querries.
I did everything using the "Responsive Layouts" from Google Chrome’s Webdev Tools.
For cell phones in portrait position, I kept 100vh as the height of each Section, but for cell phones in Landscape position, I had to increase to 120vh or 140vh, since the height of the viewport gets too small to support content.
The problem is, the width of the lying cell phone collides with the width of some standing cell phones. This is making sure that, for certain devices, I have a huge spare.
I’m SURE I’m making snot with the breakpoints. I’m a new dev and this is a part that breaks me a lot!
Someone knows how to give me some advice on how to fix this and good practice for the breakpoints of media querries not collide?
Entire code: https://github.com/lucasemg/porfolio Page: https://lucasemg.github.io/porfolio/
@media screen and (max-width:400px) /*celulares retrato*/
@media (min-width:400px) and (max-width:498px) /*celulares landscape*/
@media (min-width:498px) and (max-width:630px) /*Tablets Pequenos Retrato*/
@media (min-width:630px) and (max-width:818px) /*Tablets Pequenos Landscape*/
@media (min-width:818px) and (max-width: 1200px) /*Tablets Grandes*/
insira o código aqui
Putz Hugo, the second time you came to save me, my dear! hahahahaha Anyway, thank you very much, I was unaware of the property "orientation" pros @media. I’ll try as soon as I get home, then we’ll see if you optimize that problem
– Lucas Mendes Gabriel