Hey guy's at a total loss as to what is causeing this problem
Problem Description:
Trying to set a <button> tags inline style background to a url. Here is the full code.
NOTE: THe background image is just a sample image, I have also tried this locally i.e. C:\image.jpg
Also if that's ^^^^ to hard to read here is a patebin link http://pastebin.com/9C3T0nzCCode:document.getElementById("theText").innerHTML = document.getElementById("theText").innerHTML + window.toStaticHTML("<button id='buttonBox' style='width:185px; height:274px; margin-left:15px; margin-right:15px; margin-top:0px; margin-bottom:0px; background:url(C:\Users\Anton\Documents\Visual Studio 2012\Projects\MetroApp1\MetroApp1\images\logo.png) no-repeat; background-position:center;'></button>");
TIA - Anto.




Reply With Quote