Can I add inline styles with this module?

I need to rewrite the output of a field in a view with the following, so an image that's a view's result can be added as an inline image:

<div class="image-div" style="background-image:url('[field_image_fid]'); width: 250px;"></div>

Can this be done? By default views strips out the style tag. I read that using this module was a work around, but it seems to do the same thing.

Thanks

Comments

djh007’s picture

subscribing

roblav’s picture

I'd also like to know if this is possible.

Ryan258’s picture

I'm here from http://drupal.org/node/853880 and this doesn't seem to work.

Trying to make it so editors can update the background images (repeating) on their own.

They add an image to a piece of node content, with a token of the image path rewritten as in the url('[token]').

It all seemed too easy until I hit this snag with style attribs being stripped.