There was a big flame war started by some guy Bill a while back he was asking similar question athough not as nicely as you :-}. Anyhow I posted something on there that i did see http://our.umbraco.org/forum/using/ui-questions/3124-Referencing-Media-objects?p=4 basically had a bunch of images that were background and needed to change. I also posted another suggestion further on about another way of referencing images in a css its a bit long winded but in theory it would work. Hopefully future version of umbraco will have ability to insert images in the media section into css editor. He loved it so much he give everyone in the post negative karma LOL.
Images in CSS
Hello.
I have uploaded an imagefile into the "media" folder, and now I would like to use it as a backgroundimage in my CSS. How can I do this?
Right now I have hardcoded the URL of the image into my stylesheet (like /media/2/bg.png).
/Kristian Frost
I'd only use the media library for "content" images, not for site css (unless e.g. the author should be picking a background image).
Here's how I normally do this
Putting site design images in the media library is abad idea as people can then delete them..
Kristian,
There was a big flame war started by some guy Bill a while back he was asking similar question athough not as nicely as you :-}. Anyhow I posted something on there that i did see http://our.umbraco.org/forum/using/ui-questions/3124-Referencing-Media-objects?p=4 basically had a bunch of images that were background and needed to change. I also posted another suggestion further on about another way of referencing images in a css its a bit long winded but in theory it would work. Hopefully future version of umbraco will have ability to insert images in the media section into css editor. He loved it so much he give everyone in the post negative karma LOL.
Regards
Ismail
Thanks for the quicks answers.
I think dandrayne got a point with the "layout, not content" thing, so I will stick to that solution for now.
But i also agree that in a future version of Umbraco, a "insert media" button or something could be neat.
/Kristian
is working on a reply...