The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Button type image doesn’t change size.

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #44419


    I have a php script which when click on a button you go to a random page.
    I’ve made from the button a picture.
    But I want to make the picture smaller, if I do that by changing the height and widht in css it only changes the border, and the picture stays the same.

    Here is a pen

    Can someone please help me with that.
    Sorry for my bad English, I hope you understand my question.


    You could try adding:

    background-size:100% 100%;


    Thanks that was the problem

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.