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 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;
}
}