I want to output an image as a background-image of a "section"-tag but it doesn't work.
First I added the Image URL Formatter module, so I do not output the image but the url of the file.
In my view I add the image which generated with the contextual filter of the url. In that field I rewrite the output:
<section style="background-image: url([field_hintergrundbild])" id="slid-unternehmen"> </section>
When I check the site I only get this:
<section id="slid-unternehmen"> </section>
I tried several times and it seems to me that Drupal will not accept the "style="..."" tag, Drupal will always remove it! And I don't know why?
If I change the
class, I get the normal output, as in this example:
<section class="background-image: url(http://....)" id="slid-unternehmen"> </section>
Does anybody have an idea?