Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

94
Visualizações
I am getting enlarged logo image in HTML and CSS website in iphone safari browser. How to fix it?

I am getting enlarged logo image in HTML and CSS website in iphone safari browser. As I have already set width and height in css using media queries but still I am getting this issue only in iphones not on android.

Screenshot Image

Please Visit this link to get the code and related files: https://github.com/abhijeetjain101/Portfolio-Website

@media only screen and (max-width: 480px){

    .logo {
        max-height: 20%;
        max-width: 40%;
        width: 50px;
        height: 40px;
    }
about 4 years ago · Juan Pablo Isaza
3 Respostas
Responde à pergunta

0

have you checked that the screen dimensions are meant for your actual iPhone, sometimes they can be 1px off

*{
    margin: 0px;
    padding: 0px;
}

/* Small phones line iPhone 5 SE */
@media screen and (max-width:374px) {
}

/* Regular phones like Iphone X + */
@media only screen and (min-width:375px) {
}

/* landscape mobile devices */
@media only screen and (min-width:480px){
}

/* tablet portrait */
@media only screen and (min-width:768px){
}

/* tablet landscape */ 
@media only screen and (min-width:1024px){
}

/*Small Monitor Screen */
@media only screen and (min-width:1280px){}

/* med Monitor Screen */
    @media only screen and (min-width:1440px){}


/* Large Monitor */
@media only screen and (min-width:1920px){}

This is kinda my starting point for any CSS script for Web Dev, also ensure that if you're using, responsive attributes for image size that you dial it down or up based of screen needs when you mover to a new media query

about 4 years ago · Juan Pablo Isaza Relatório

0

just give in style this code img{width:100%;}

about 4 years ago · Juan Pablo Isaza Relatório

0

Just give min & max width of image or else use % instead px this might help

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda