background-image

Gatsby: Set background image with CSS

ε祈祈猫儿з 提交于 2020-07-06 09:01:20
问题 Looking at the Gatsby docs, they suggest that you can reference background images like you would anywhere else: .image { background-image: url(./image.png); } What they don't cover is where these images should live. I've tried placing the image directory in the src folder, in the layout folder, and in the root folder, but I keep getting the error: Loader /Users/username/Sites/my-app/node_modules/url/url.js?{"limit":10000,"name":"static/[name].[hash:8].[ext]"} didn't return a function @ ./~

Gatsby: Set background image with CSS

泄露秘密 提交于 2020-07-06 09:01:11
问题 Looking at the Gatsby docs, they suggest that you can reference background images like you would anywhere else: .image { background-image: url(./image.png); } What they don't cover is where these images should live. I've tried placing the image directory in the src folder, in the layout folder, and in the root folder, but I keep getting the error: Loader /Users/username/Sites/my-app/node_modules/url/url.js?{"limit":10000,"name":"static/[name].[hash:8].[ext]"} didn't return a function @ ./~

Background Image flickering when change - react

别来无恙 提交于 2020-05-16 05:54:13
问题 I have been rewriting my website ondeband.com - it is currently a wordpress website and I am about a month into writing it in react. I am not going to change the home page too much - it has a background image that changes every couple seconds. You can see it in my link above. Problem is...on my new react version of the website - it flickers between each image change - speically when I pushed it to heroku. It works 99% of time on my local dev server. I have a feeling it is due to the

CSS 80's TRON Grid

北城以北 提交于 2020-05-09 05:55:49
问题 I'm wanting to build an "80's TRON Grid" effect with CSS but I'm running into a few issues with getting it where I want it. Stuff like this. My Requirements: Fade 1 side to transparent Package it up into a nice .class to put on any <element> and it just work I've made 2 attempts at this w/ 2 different techniques. 80's Grid #1 (pseudo selectors) https://codepen.io/oneezy/pen/MPQWBE Although this works perfectly, it's not ideal to put 10 <div> 's in my html every time I want the effect. body {

CSS 80's TRON Grid

橙三吉。 提交于 2020-05-09 05:55:09
问题 I'm wanting to build an "80's TRON Grid" effect with CSS but I'm running into a few issues with getting it where I want it. Stuff like this. My Requirements: Fade 1 side to transparent Package it up into a nice .class to put on any <element> and it just work I've made 2 attempts at this w/ 2 different techniques. 80's Grid #1 (pseudo selectors) https://codepen.io/oneezy/pen/MPQWBE Although this works perfectly, it's not ideal to put 10 <div> 's in my html every time I want the effect. body {

CSS Background Images with Flask

 ̄綄美尐妖づ 提交于 2020-04-17 22:53:33
问题 I have read other questions about getting background images in flask to show, but none of the suggested solutions worked for me and I get a 404 error(127.0.0.1 - - [22/Feb/2018 15:13:33] "GET /img/showcase.jpeg HTTP/1.1" 404 -). The jpeg image I want to set as the background is located in the static folder and called showcase.jpeg. Here is my code. Any suggestions? Here's the HTML Link to my style.css: <link rel="stylesheet" type="text/css" href="{{url_for('static',filename='style.css')}}">

Firefox background-image disappear after switching tabs

十年热恋 提交于 2020-04-13 17:48:31
问题 I have some very weird issue with firefox while rendering background-images. I'm not sure if it's a firefox bug or simply my fault. Every time I open my project site in firefox all background images are loaded and displayed correctly. After I switch to another tab and switch back after a while all background images disappeared. I checked the network analysis tab in the developer tools and all files are loaded correctly. Also in some situations parts of the images appear after I select some

Firefox background-image disappear after switching tabs

女生的网名这么多〃 提交于 2020-04-13 17:46:10
问题 I have some very weird issue with firefox while rendering background-images. I'm not sure if it's a firefox bug or simply my fault. Every time I open my project site in firefox all background images are loaded and displayed correctly. After I switch to another tab and switch back after a while all background images disappeared. I checked the network analysis tab in the developer tools and all files are loaded correctly. Also in some situations parts of the images appear after I select some

Drawing Bitmap as MainScreen Background. How to Stretch Image?

夙愿已清 提交于 2020-02-16 06:23:54
问题 I want the background image to stretch all screen. I simply created a VerticalFieldManager and modified paint method. verticalFieldManager = new VerticalFieldManager(VerticalFieldManager.USE_ALL_WIDTH | VerticalFieldManager.NO_HORIZONTAL_SCROLLBAR) { public void paint(Graphics graphics) { graphics.drawBitmap(0, 0, this.getWidth(), this.getHeight(), backgroundBitmap, 0, 0); super.paint(graphics); } }; And when i add a ListField to the verticalFieldManager and scroll, background image is not

CSS multiple Background Images both repeat-x

限于喜欢 提交于 2020-02-05 08:25:32
问题 I try to get multiple background images in one div at the moment. Both must repeat-x. The first image should start at the top-left point up to 50% of the div. The second should start at the middle to the right end of the div. I tried the following: .myDiv { background-image: url('image1.png'), url('image2.png'); background-repeat: repeat-x, repeat-x; background-position: left top, center top; background-size: 50% 100%, 50% 100%; } My problem is that only image1 is shown. 回答1: Set two