Background image does not render in firefox

scopa

I have a single webpage.

  <head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<title> Welcome to domain.com!</title>
<link href="css/styles.css" type="text/css" rel="stylesheet" />
</head>
<body>
</body>

And a css file

body {
    background-image: url("../pics/city7.png");
    background-size: 100% 100%;
    display: inline-block;  }

It works perfectly (scaling) in chrome. But in firefox it is just a bunch of lines. I tried using display: inline-block - but that does not fix the problem. I am not even sure what it is doing. From what I know (and it aint much at this point) is that if I put the image in HTML it will override the CSS - can someone points me in the right direction?

nersoh

In your CSS file, you could write something like:

html {
  min-height: 100%;

}

body {
  background-image: url("../pics/city7.png");
  background-size: 100% 100%;
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

render desktop image as background for mobile react JSX

From Dev

Heroku does not serve background image, localhost does?

From Dev

transition for background-image in firefox?

From Dev

Does Sprite Kit render in the background, or on the main thread? How does it work?

From Dev

Why does this simple, nested DIV render differently in Chrome and FireFox?

From Dev

Progressive JPG background image trouble in Firefox

From Dev

libGDX What's the best way to render a large background image?

From Dev

FontAwesome does not render on Firefox for Android

From Dev

Blurry image in firefox using background size?

From Dev

Image does not render with KineticJS

From Dev

IE does, but Chrome/Firefox do not render SVG embedded image in "img" element

From Dev

Render text box with transparent background on top of image in React Native iOS

From Dev

Flickity does not render the second image in the carousel

From Dev

Why does Firefox not render border of table with empty tbody?

From Dev

Different div background image for Firefox and IE

From Dev

Background-image in keyframe does not display in Firefox or Internet Explorer

From Dev

Background image size is not displaying on firefox

From Dev

CSS background image only working in firefox

From Dev

SVG won't render as CSS background-image

From Dev

Image does not render with KineticJS

From Dev

Background css image won't show in firefox

From Dev

Polymer core-icons does not render in FireFox

From Dev

Background image doesn't show in firefox and IE

From Dev

HtmlRenderer doesn't render background image from css

From Dev

My background image displays in google chrome but not in firefox

From Dev

Render background-image to canvas

From Dev

Section background image not working on firefox

From Dev

Image upload to s3 does not render

From Dev

Xcode UI on background thread to render image

Related Related

  1. 1

    render desktop image as background for mobile react JSX

  2. 2

    Heroku does not serve background image, localhost does?

  3. 3

    transition for background-image in firefox?

  4. 4

    Does Sprite Kit render in the background, or on the main thread? How does it work?

  5. 5

    Why does this simple, nested DIV render differently in Chrome and FireFox?

  6. 6

    Progressive JPG background image trouble in Firefox

  7. 7

    libGDX What's the best way to render a large background image?

  8. 8

    FontAwesome does not render on Firefox for Android

  9. 9

    Blurry image in firefox using background size?

  10. 10

    Image does not render with KineticJS

  11. 11

    IE does, but Chrome/Firefox do not render SVG embedded image in "img" element

  12. 12

    Render text box with transparent background on top of image in React Native iOS

  13. 13

    Flickity does not render the second image in the carousel

  14. 14

    Why does Firefox not render border of table with empty tbody?

  15. 15

    Different div background image for Firefox and IE

  16. 16

    Background-image in keyframe does not display in Firefox or Internet Explorer

  17. 17

    Background image size is not displaying on firefox

  18. 18

    CSS background image only working in firefox

  19. 19

    SVG won't render as CSS background-image

  20. 20

    Image does not render with KineticJS

  21. 21

    Background css image won't show in firefox

  22. 22

    Polymer core-icons does not render in FireFox

  23. 23

    Background image doesn't show in firefox and IE

  24. 24

    HtmlRenderer doesn't render background image from css

  25. 25

    My background image displays in google chrome but not in firefox

  26. 26

    Render background-image to canvas

  27. 27

    Section background image not working on firefox

  28. 28

    Image upload to s3 does not render

  29. 29

    Xcode UI on background thread to render image

HotTag

Archive