What I'm trying to do is have a full screen background with a radial image over it with no scroll bars. Right now it kind of works. By that I mean that the div with the radial gradient(img) adds a scroll bar even with overflow: hidden.
html {
background: url(background.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover
}
#glow{
width:1043px;
height:763px;
position:absolute;
left:50%;
top:50%;
background-image: url('outer_glow.png');
margin-left:-543px; /* Negative half the width*/
margin-top:-381px; /* Negative half the height */
overflow: hidden;
}
What i'm trying to do is if the image radial is too big to just cut it off and center it. But currently it still shows a vertical bar in my browser. html below
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="styleit.css" rel="stylesheet">
<title>Title</title>
</head>
<body>
<div id="glow"></div>
</body>
</html>
overflow: hiddenonly effects the element with the attribute. As in, only if the contents of the#glowelement would overflow would it be hidden. Try addingoverflow: hiddento the body element.