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

cant change site backgroundcolour (but can insert backgroundimage..??)

New Here ,
Feb 07, 2017 Feb 07, 2017

as the title

i cant change the colour of my site (none of them) ( i can change it but nothing happens), but giving the site a backgroundimage is no problem..

i dont get it???

please help

384
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 , Feb 07, 2017 Feb 07, 2017

If you take the second image Erscheinungsbild (CSS) and change the value of Hintergrundfarbe and click on Anwenden, then the background colour should change accordingly. If not, go into code view and in the first 15 lines of code you should be able to find code similar to

body {

  background-color: #D70609;

}

change that to read (i.e. add !important)

body {

  background-color: #D70609 !important;

}

Viel Glück

Translate
Community Expert ,
Feb 07, 2017 Feb 07, 2017

There are two different ways to set a background colour, namely

background: green;

and

background-color: green;

Depending on which one was set prior to you changing the colour will determine which one to use for the override.

If in doubt, use background: green !important;

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
New Here ,
Feb 07, 2017 Feb 07, 2017

hi

thanks..

i guess u mean once in html (background) and once in css (backgroundcolour)

Bildschirmfoto 2017-02-07 um 14.17.48.png

Bildschirmfoto 2017-02-07 um 14.17.32.png

i did both now, and applied, still nothing and a white background on my site

hmmm??? hmm

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 ,
Feb 07, 2017 Feb 07, 2017

If you take the second image Erscheinungsbild (CSS) and change the value of Hintergrundfarbe and click on Anwenden, then the background colour should change accordingly. If not, go into code view and in the first 15 lines of code you should be able to find code similar to

body {

  background-color: #D70609;

}

change that to read (i.e. add !important)

body {

  background-color: #D70609 !important;

}

Viel Glück

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
New Here ,
Feb 07, 2017 Feb 07, 2017

yeahh;)  now it works

body {

  background-color: #D70609 !important;

}

well done fellows, thanks a lot!!

best , christoph

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 ,
Feb 07, 2017 Feb 07, 2017
LATEST

To help you understand the !important value, have a look here When Using !important is The Right Choice | CSS-Tricks

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