I am trying to add an image to a div as a background image. Here is the following div that I have for this div background image.
<div id="mailformtoolset" style="background-image:url('~/images/bodybg.png'); background-repeat:repeat-x; width:225px; height:110px; background-position:center;">
So why is my div not picking up the image for the background and how do I fix that? The file that I am writing code for is a user control located in the controls directory, the web page that I am testing it on is in the root directory and the image is located in the images folder. How do I fix this issue? Thank you!