Page background image with Vision template starter
Imported the Vision theme template. It is set with a default background image for all pages. I only want the background image on the front page. I deleted the background image in the theme settings.
Suddenly the background image on the front page is tiling. Repeating. I'm sure there is a way to turn this off, but I'm not sure what it is.
See front page in development here: http://www.joemcarroll.com/
Comments
what is the password to your site? Because we are unable to have a look on what you mean.
1. So to do not repeat background image, you must use below css: 2. CSS backgrounds and responsive are technically incompatible.
But if you do not have a default background image for pages and set a background image for your front page, it does not behave responsively.
MY WORKAROUND - create a single pixel white image 1900 wide and set as background for all pages. But I think you should look into this. It's an odd thing, the way this setting affects things.
However, your background image does adjust itself a little bit as you narrow browser windows. Try this test:
2. Now go to my site. The background image is sized exactly the same. The only difference is that the site has the background image default for pages turned off. Resize the window. Notice the background image does not move at all. The main figure in it disappears immediately.
It may not be fully responsive, but your background image behaves differently as the window narrows depending on whether or not a default background image is set for pages in the site.
MY PROBLEM is that I don't want images like this on every page. I'm considering making a 1900x1 pixel image and setting that as the default for all pages, just so I can keep this turned on. But this little glitch causes issues with anyone using this template who does not want default background images on all pages.
Centering the background image is the key. That allows the image to stay centered until it goes away at the responsive break point.
Maybe we could include the center top command in the css you sent?