Reputation: 41
I'm trying to update my website, but the content is overflowing off the screen and going out of view since there's no scroll bar. You can see at caves.neocities.org.
I tried using margin
and padding
in the CSS style for the body
but nothing is working.
Here's the CSS for the body
and page. The div
s on my site are all about the same and the HTML for the div
overflowing is like this:
body {
color: black;
font-family: Courier;
overflow: scroll;
}
.main1 {
background-image: linear-gradient(#000000, #435454);
border: double;
border-color: #D2EFEF;
width: 600px;
margin: 0 auto;
margin-top: 50px;
}
<div class="browse">
<center> Site Links </center> <br>
<hr> testing, once again!
</div>
Upvotes: 1
Views: 953
Reputation: 7949
Try this:
.weather {
position: relative;
overflow-x: hidden;
}
Or
body {
color: black;
font-family: Courier;
overflow-y: scroll!important;
}
Upvotes: 0
Reputation: 159
Your error :::
.weather class from weather.min.css is overridiing your css rules;
.weather {
position: relative;
overflow: hidden;
}
Try this :::
body {
color: black;
font-family: Courier;
overflow-y: auto !important;
}
Upvotes: 1
Reputation: 195
.weather class from weather.css is overridiing your css rules, apply !important on your overflow rule.
Upvotes: 0