Results 1 to 5 of 5
  1. corpx's Avatar
    Posts
    209 Posts
    Global Posts
    219 Global Posts
       #1  
    Code:
    .orangebutton {
      color: #CC5500;
      width: 100px;
      float:right;
      background: url(./images/orangebutton.png);
    
    }
    That's the code I have, but I cant seem to change the background of the button. Any ideas?

    orangebutton.png is in the /images folder of the app.
  2. #2  
    Try backgound-image instead.
  3. #3  
    Quote Originally Posted by enormous View Post
    Try backgound-image instead.
    "background:" is correct CSS. Maybe your URL is not correct or image not present.
  4. #4  
    If this is a mojo button you may need to declare the button class when instantiate the button in the assistant file.

    That just worked for but I don't fully understand why.
  5. #5  
    I could be terribly mistaken. But it looks like your problem lies....

    Code:
                   Here
                    ||
                    \/
    background: url(./images/orangebutton.png);
    I've been referencing all my images '../images/imagename.png'

Posting Permissions