{"id":322,"date":"2016-09-19T19:23:53","date_gmt":"2016-09-19T19:23:53","guid":{"rendered":"https:\/\/wiki.samuelchopard.ch\/?p=322"},"modified":"2019-03-18T14:29:25","modified_gmt":"2019-03-18T13:29:25","slug":"cannot-change-the-background-color","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/cannot-change-the-background-color\/","title":{"rendered":"Cannot change the background color"},"content":{"rendered":"<p><!--more--><\/p>\n<p>If you are trying to change the background color of a certain element and <em>background-color: #XXXXXX !important;<\/em> did not work, try the following :<\/p>\n<pre class=\"EnlighterJSRAW\">.selector {\n     background: linear-gradient(to bottom, #XXXXXX 100%, #XXXXXX 100%) !important;\n}<\/pre>\n<p>Change the <b>XXXXXX<\/b> value with the HEX code of the desired color.<\/p>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/linear-gradient\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/CSS\/linear-gradient<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"If you are trying to change the background color of a certain element and background-color: #XXXXXX !important; did not work, [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[38,39,56,159,309],"class_list":["post-322","post","type-post","status-publish","format-standard","hentry","category-htmlcss","tag-background","tag-background-color","tag-change","tag-linear-gradient","tag-unable"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=322"}],"version-history":[{"count":1,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/322\/revisions"}],"predecessor-version":[{"id":54904,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/322\/revisions\/54904"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=322"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=322"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}