Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
I'm having problem with duplicating body area, wchich looks like this:
How to fix it?
You can change the background-size to fit the whole element by using background-size:cover .
body {
width:100%;
height: 600px;
background: linear-gradient(red, yellow);
background-size: cover;
}
this should fix it, the background will only show once
body {
background-repeat: no-repeat;
}
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 months ago.
Improve this question
body {
background-image: url('./circle.svg');
}
straight up not working for me.
Are you sure the SVG is in the right directory? try placing it in the same directory as your style.css and adding background-size: cover;
If your SVG is in the same directory as your css this should work:
body {
background-image: url('circle.svg');
background-size: cover;
}
If your SVG is in the parent directory of your style .css make sure the url() has ../ infront of it.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I have set the header image to not repeat. However, I'm trying to make the website responsive. When in a smaller browser the image begins to repeat.
screen snip of website header background
header css
media query
The property is no-repeat not none, e.g. :
.bg-image {
background-repeat: no-repeat;
}
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Please check below web template image.
URL - https://ibb.co/cD3iH8
I am expecting to use above abstract design image as background for a whole page.
kindly share the best approach to achieve this.
Multiple options here. You can play around with:
background-size: 100%
or
background-size: cover
or
background-size: contain
Good luck!
Use body height same as image height:
body{
background-image:url('https://image.ibb.co/iGhzqT/atach_6.png');
height:5788px;
background-size: contain;
}
https://codepen.io/spmsupun/pen/YvvJWb
add
background-repeat:no-repeat;
background-size:contain;
to your style sheet .it will works fine .I'm added the snippet below
body{
background:url('https://image.ibb.co/iGhzqT/atach_6.png');
height:6000px;
background-repeat:no-repeat;
background-size:contain;
width:100%;
}
<body>
</body
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 5 years ago.
Improve this question
It seems to work fine on other browsers and resolutions but not on 1920 x 1080. See image link below. The "about us" blue bar is wider than the image.
Image of the error
Issue found towards the bottom of the page on the about us image/link
Some help solving this would be greatly appreciated!
The image is not wide enough.
This should solve the problem.
.frontbutton.hpimg4::before {
background-size: cover;
}
Replace
.frontbutton.hpimg4::before {
width: -webkit-fill-available;
background-image: url(about-us.jpg);
}
with this
.frontbutton.hpimg4::before {
width: -webkit-fill-available;
background-image: url(about-us.jpg);
background-size: cover;
}
In your style.css
Its located in wp-content/themes/vantage-child/ folder
Hope this helps.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 years ago.
Improve this question
I've fixed header and footer. Only the body needs to be scrolled. So I used a code like this:
.body{
height: 100%;
margin: 0%;
overflow: auto;
}
But it didn't work. How can I make only body scrollable?
try to add to your style:
overflow-y: scroll;