Is it possible to add a background image to an anchor in the HTML editor. using a class?
Example of a Content Page in a Lesson.
What i currently do is upload an image to the page.
Get the url example: ""
and then apply it to the class in style tags.
So what have in the html editor is:
------------------------------------------------
<style type="text/css">
.myButton{
height:100px;
width:100px
background-image:url(http://www.mymoodle.com/draftfile.php/#/user/draft/#/myButton.jpg);
}
</style>
<a class='myButton'><a>
------------------------------------------------
What happens is this image "myButton" changes its location (in moodle) 4 days down the track to something like:
http://www.mymoodle.com/pluginfile.php/##/mod_lesson/page_contents/#/myButton.jpg
And i lose my background images.
And workarounds or ways stop moodle putting images in draftfile area and then chaning to pluginfile.
I have lots of imange and lots of backgrounds and i dont have lots of hours to go through pages already built and change the location after 4 days.