Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to clear background-image in css.
Forum Updated to NodeBB v4.3 + New Features

How to clear background-image in css.

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nikitablack
    wrote on 18 May 2015, 12:18 last edited by nikitablack
    #1

    Greetings.

    I have following css which I apply to application:

    #pushButton {
        border: none;
        background-image: url(:/icon.png);
    }
    

    During runctime I want to clear icon and just set color:

    #pushButton {
        border: none;
        background-color: #eeeeee;
        background-image: none;
    }
    

    But the border still present. Even if I override the image with another one - the older is still there and I have two overlapping images.

    T 1 Reply Last reply 19 May 2015, 12:12
    0
    • N nikitablack
      18 May 2015, 12:18

      Greetings.

      I have following css which I apply to application:

      #pushButton {
          border: none;
          background-image: url(:/icon.png);
      }
      

      During runctime I want to clear icon and just set color:

      #pushButton {
          border: none;
          background-color: #eeeeee;
          background-image: none;
      }
      

      But the border still present. Even if I override the image with another one - the older is still there and I have two overlapping images.

      T Offline
      T Offline
      tarod.net
      wrote on 19 May 2015, 12:12 last edited by
      #2

      @nikitablack Hi,

      I'm not getting the same behaviour. How do yo set the stylesheet?

      In my case, I'm playing with two css. The first one has the background image. The second one has no image and a background color. I set the one or another clicking in the pushbutton.

      "Individually, we are one drop. Together, we are an ocean."

      1 Reply Last reply
      0

      1/2

      18 May 2015, 12:18

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved