Answer the question
In order to leave comments, you need to log in
How to fill the side area behind the scrollbar with background?
There is a CSS code for the element:
#top {
width: 100%;
height: 170px;
position: relative;
background-image: url('images/top_gradient.png');
background-repeat: repeat-x;
background-position: bottom;
}
Answer the question
In order to leave comments, you need to log in
jsfiddle.net/q7aPX/
Relative elements depend on their parents and won't overflow.
Become as the person described above, absolute, and check that no one has a relative or absolute in the chain of parents, otherwise it will again be attached to that parent.
If there is nothing else in the block, then
#top {
height: 170px;
position: absolute;
left: 0;
top: 0;
right: 0;
background-image: url('images/top_gradient.png');
background-repeat: repeat-x;
background-position: bottom;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question