Background url() in CSS does not display image but in html makes it appear? -


I have an HTML document with an inline style: here:

When I try to apply the image using the background url (), the image is not visible. Even if I try to add '../' before the 'Pictures' folder of the path or when I insert the '' '' at the beginning and end of the path inside the oval bracket.

The folder structure is as follows: index.html Two other folders reside with stylesheets and 'image'. The contents of the 'Stylesheet' folder is the default folder that comes with the skeleton html5 boilerplate and its stylesheet inline HTML document St Inside the 'images' folder there is only one file called 'logo.jpg' when I try to add a 'logo' class background and add the image as background: url () then the image is Mozilla Firefox and other browsers. However, when I add the 'src' attribute to tag inside 'html' and specify the path in the same way as the CSS style, the image appears Can anyone explain to me that when I try to add it through CSS, why does not the image appear? "post-text" itemprop = "text"> < P> By the way ... if it has no src attribute, then the browser has also render height and width?

And do not use an IMG tag, but if you apply the src attribute ... and then CSS background.

  & lt; One square = "foo" target = "_ blank" & gt; Link & lt; / A & gt;   

If there is no href attribute in it then the element is not valid, and you sometimes get weird behavior.

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -