Why is my website scrolling horizontally?

On this page of my site its scrolling horizontally but i can’t figure out why?

Here is my CSS:

header {

background-color: rgba(0,0,0,0.0);
height: 60px;
width: 100%;
margin-top: 0px;

}
.logo {

color: white;
font-family: 'Montserrat', sans-serif;
margin-left: 10px;
padding-bottom: 10px;
float: left;
width: 70px;

}

body {

background-image: url("../images/background2.jpg");
background-size: cover;
margin: 0;

}

nav {

float: right;
margin-right: 10px;
background-color: rgba(0,0,0,0.0);

}

nav ul {

list-style-type: none;
font-family: 'Oswald', sans-serif;
overflow: hidden;
margin-top: 0;
padding-top: 15px;

}

nav li {

display: inline;
padding-right: 30px;

}

nav li a {

color: white;
text-align: center;
text-decoration: none;

}

#main-header {

color: white;
font-family: 'Archivo Narrow', sans-serif;
margin-top: 50px;
margin-bottom: 50px;
text-align: center;
font-size: 1.9em;

}

#image-slider {

width: 1150px;
height: 450px;
border: 1px solid black;
border-radius: 5px 5px 5px 5px;
margin: 0 auto;
box-shadow:0 1px 4px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 0, 0, 0.1) inset;
position: relative;

}

#slider-bg {

background-color: rgba(0,0,0,0.3);
width: 100%;

}
.slides {

border-radius: 5px 5px 5px 5px;

}

#image-slider>img {

width: 100%;
height: 100%;
position: absolute;

}

#image-slider>.btn {

position: absolute;
width: 30px;
height: 30px;
margin-left: 5px;
margin-right: 5px;
border: none;
border-radius: 25px;
margin-top: 220px;
font-size: 20px;
background: linear-gradient(to bottom right, #22c1c3, #fdbb2d);
color: white;

}

#image-slider>#btn1:hover {

box-shadow: 5px 0px 15px 0px rgba(0, 0, 0, 0.3);

}

#image-slider>#btn2:hover {

box-shadow: -5px 0px 15px 0px rgba(0, 0, 0, 0.3);

}

#image-slider>#btn2 {

position: relative;
float: right;

}

#img-wrapper {

text-align: center;
margin: 0 auto;
box-shadow: -5px 0px 15px 0px rgba(0, 0, 0, 0.3);

}

.box a {

border-radius: 5px 5px 5px 5px;

}

.desc-wrapper {

background-color: white;
color: black;
width: 230px;
height: 160px;
padding-left: 5px;
padding-right: 5px;
border-radius: 5px 5px 5px 5px;
font-family: 'Archivo Narrow', sans-serif;
text-align: center;
opacity: 0.7;
box-shadow: -5px 0px 15px 0px rgba(0, 0, 0, 0.3);

}

.desc-title {

padding-top: 3px;

}

.desc {

font-size: 0.6em;
padding-left: 1px;
padding-right: 1px;

}

#text-wrapper img {

width: 100%;
height: auto;

}

.wrapper {
display: grid;
grid-template-columns: 100px 100px 100px;
grid-gap: 200px;
width: 700px;
margin-top: 200px;
margin-left: 250px;
margin-bottom: 100px;
color: #444;
}

.box img {
background-color: #444;
color: #fff;
height: 180px;
width: 240px;
border-radius: 5px;
box-shadow: -5px 0px 15px 0px rgba(0, 0, 0, 0.3);
}

footer {

background-color: rgba(0,0,0,0.3);
height: 60px;
width: 100%;
padding-left: 20px;
padding-top: 8px;

}

.social-icon {

margin-left: 10px;
padding-top: 5px;

}

I inspected the source code but I can’t see anything wrong

@jgofficial1 What is your website link?

1 Like

https://jgofficial1.000webhostapp.com/work.html

I fixed it i think, i had this problem on my Home page but i needed to add box-sizing css

1 Like

Let us know if you’ve any other issue. :slight_smile: