Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

266
Vistas
My html page is cutting on mobile screen and scroll bar on x-axis automatically becomes active. What is the issue?

I am working on my porfolio. My project section html page is cutting on mobile screen and scroll bar on x-axis automatically becomes active. What is the issue?.

UI: User Interface Link

User Interface Link

OR

https://hamzailyas-portfolio-237.web.app/portfolio/projects.html

HTML code:

https://i.stack.imgur.com/639QQ.png

CSS code:

.project-container {
    float: left;
    width: 30%;
    text-align: center;
    border-radius: 6px;
    margin: 40px 22px;
}

#row {
    margin-top: -100px !important;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.project-card {
    box-shadow: 0 4px 6px 0 rgba(0, 0, 0, 0.2);
    padding: 70px 20px !important;
    min-width: fit-content;
    text-align: center;
}

.project-card a {
    color: black;
    text-decoration: none;
}

.project-card:hover {
    background: crimson;
    color: white !important;
    transition: all 0.3s ease !important;
    transform: scale(1.05);
}

.project-card:hover a {
    color: white !important;
}

.project-card h1 {
    font-size: 35px;
    text-transform: capitalize;
    font-family: 'Ubuntu', sans-serif;
}

.project-card p {
    font-size: larger;
    margin-top: 30px;
    display: flex;
    justify-content: space-evenly;
}

.project-card p img {
    height: 30px;
    margin-top: -5px;
}

/* @media only screen and (min-width: 651px) and (max-width: 1100px) { 
    .project-container {
        margin-right: 100px;
    }        
} */

@media screen and (max-width: 1319px) {
    .project-card img {
        margin-right: 7px;
    }
}

@media screen and (max-width: 950px) {
    .project-container {
        width: 50%;
    }
}

@media screen and (max-width: 650px) {
    .project-container {
        width: 70%;
    }
}

@media screen and (max-width: 550px) {
    .project-container {
        width: 90%;
    }

    .project-card img {
        margin-right: 10px;
    }
}

@media screen and (max-width: 450px) {
    .project-card img {
        margin-right: 10px;
    }

    .project-card {
        padding: 60px 10px !important;
        font-size: smaller;
    }
}
about 4 years ago · Juan Pablo Isaza
3 Respuestas
Responde la pregunta

0

If it is just a scroll bar on the x axis that is the issue, try:

body {
    overflow-x: hidden;
}

about 4 years ago · Juan Pablo Isaza Denunciar

0

Try this CSS code to make the perfect layout for Desktop & Small Devices. By doing this way you will not find any scrollbar.

#row {
    display: flex;
    padding: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: -100px !important;
}
.project-container {
    padding: 15px;
    flex: 0 0 33.333%;
    max-width: 33.333%;
    text-align: center;
    border-radius: 6px;
}
.project-card {
    overflow: hidden;
    text-align: center;
    padding: 70px 20px !important;
    box-shadow: 0 4px 6px 0 rgb(0, 0, 0, 0.2);
}
@media screen and (max-width: 1199px) {
    .project-container {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media screen and (max-width: 575px) {
    .project-container {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
about 4 years ago · Juan Pablo Isaza Denunciar

0

Try this its will help on your current css. i added this and its work

@media screen and (max-width: 550px){
.project-container {
    width: 100%;
    margin: 25px 0px;
}
}
@media screen and (max-width: 450px){
.project-card {
    margin: 0px 15px;
}
.project-card a {
    word-break: break-all;
}
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda