Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

CSS image won't show

New Here ,
Oct 15, 2018 Oct 15, 2018

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?

Schermafbeelding 2018-10-16 om 08.25.14.pngSchermafbeelding 2018-10-16 om 08.25.25.png

854
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 15, 2018 Oct 15, 2018

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

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

Translate
Adobe Employee ,
Oct 15, 2018 Oct 15, 2018

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Oct 16, 2018 Oct 16, 2018

Schermafbeelding 2018-10-16 om 10.35.59.png

I get this error

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 16, 2018 Oct 16, 2018

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
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 16, 2018 Oct 16, 2018

Actually, the error message does not necessarily require a media query to show as you can see in the following

Wappler is the DMXzone-made Dreamweaver replacement and includes the best of their powerful extensions, as well as much more!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 16, 2018 Oct 16, 2018
LATEST

BenPleysier  wrote

Actually, the error message does not necessarily require a media query to show as you can see in the following

I dont know why everyone seems to be ignoring your advice, sounds reasonable to me, I would not be using ' in a folders name, at least try removing it and see if the error goes away.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 15, 2018 Oct 15, 2018

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!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines