Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Im not sure how im going to add an Umbraco.Media image inside a style element, like this:
<div class="content" style="background-image:url('@Umbraco.Media(page.panelAbmntBoxImage).Url');">
Normally I would have done the fallowing:
var panelAbmntImage = Umbraco.Media(page.panelAbmntBoxImage); <img src="@magazineImage.umbracoFile" />
But I cant use this approach cause its inside a style component.. Can anyone explain or tell me how it can be done?
Thanks!
-Nicolai
Privet Nikolai,
If your images is in the media section of Umbraco, and you have to add css background property to the html, you can only use :
I don't like such approach too, but it's better than insert row in the css, create class in the css and than add this class to the html ))
Thanks
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Converting from Scripting File to Partial View Macro File. Part 2
Im not sure how im going to add an Umbraco.Media image inside a style element, like this:
Normally I would have done the fallowing:
But I cant use this approach cause its inside a style component.. Can anyone explain or tell me how it can be done?
Thanks!
-Nicolai
Privet Nikolai,
If your images is in the media section of Umbraco, and you have to add css background property to the html, you can only use :
I don't like such approach too, but it's better than insert row in the css, create class in the css and than add this class to the html ))
Thanks
is working on a reply...