Results 1 to 10 of 10

Thread: Windows 8 Metro App - Button Background

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2008
    Posts
    107

    Windows 8 Metro App - Button Background

    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

    Code:
            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>");
    Also if that's ^^^^ to hard to read here is a patebin link http://pastebin.com/9C3T0nzC

    TIA - Anto.
    Last edited by anton2k; Jul 25th, 2012 at 10:32 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width