Skip to main content
Participant
Oct 16, 2018 6:36 AM UTC
Answered

CSS image won't show

Hey there,

I have a problem with showing a image in css. As you can see in my css stylesheet I want to put a image on de background. Notice that al de rule-numbers of the images are red. So they won't show on my webpage. But if I hover over the css code he knows which image to use.

How can I solve this problem?

This topic is closed to new replies. Start a new post to keep the conversation going.
BenPleysier
BenPleysierCorrect answer
Community Expert
Oct 16, 2018 6:57 AM UTC

File names should not contain an apostrophe as in Foto's.

Suggest that you remove the apostrophe and all should be well.

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!

6 replies

BenPleysier
Community Expert
BenPleysierCommunity ExpertCorrect answer
Community Expert
Oct 16, 2018 6:57 AM UTC

File names should not contain an apostrophe as in Foto's.

Suggest that you remove the apostrophe and all should be well.

Translate
Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Participating Frequently
Oct 16, 2018 6:41 AM UTC

Hi,

Thanks for reporting. What is the error shown while hovering over the lines in red mark, or open output panel from window menu->Results to see the errors.

Thanks

Translate
Chris1711Author
Participant
Oct 16, 2018 9:20 AM UTC

I get this error

Translate
Jon Fritz
Community Expert
Community Expert
Oct 16, 2018 12:46 PM UTC

The "Expected RBRACE..." error usually occurs when a media query is used, but missing one or more of its curly braces. See below...

@media screen and (width:500px) { <--this one
     .selector {

          property:value;
     }

     #selector {

          property:value;

     }

} <-- or this one


If you have all of your curly braces, for both the media queries, and the individual selectors, please post a link to your work in progress, or post the entire .css file here in the forum so we can show you where your error is coming from.

Translate