Solved custom push button
-
Hi everyone I have 2 png files (active.png and notactive.png) and I want the other image change the when I click
stylesheet :#button {
background-color: transparent;
border-image: url(:active.png);
background: none;
border: none;
background-repeat: none;
}
#button:pressed // What should i write
{
border-image: url(:noactive.png);
}
-
i have not changed my button to checkable and mark the post to solved
-
@Raii
Okay, and what is the issue ? -
(pressed)->picture changes instant I want to stay permanently when I click
-
@Raii
Why not use #button:checked and setup your button as checkable ? -
(checked) -> I tried but the picture does not change at the first picture still stands
0_1556989316532_Ekran Alıntısı.PNG -
i'm doing something like toggle button
-
This post is deleted! -
@Raii
Everything is working with this style:#button { background-color: transparent; border-image: url(:blue.png); background: none; border: none; background-repeat: none; } #button:checked { border-image: url(:gray.png); }
-
This post is deleted! -
i have not changed my button to checkable and mark the post to solved