Reputation:
i am currently making a website but i have a horizontal scroll bar... here is the CSS for the body/html
body,html {
min-width:600px;
height:100%;
margin:0;
padding:0;
font-family:Calibri;
}
here is a fiddle: http://jsfiddle.net/charliejsford/8DSBY/
how can i get rid of the horizontal scrollbar even when the screen size is changed?
Upvotes: 1
Views: 14410
Reputation: 249
You can use the following in your CSS body tag:
overflow-y: scroll;
overflow-x: hidden;
That will remove your scrollbar.
Upvotes: 2
Reputation: 659
You should remove the width property from your footer css.
Overflow will mask the problem but doesn't address the root issue with the layout.
Upvotes: 7