php - Resize buttons in phpBB -


so have module , i'm trying resize buttons used in module fit larger image. how can downscale image fit specific button dimensions? here's css code use buttons. buttons' images imported through thanks-icon , removethanks-icon. image icons imported atm:image1. want replace owns buttons are: this upvote , img3 downvote (rescaled fit button "locked" button posts.

dl.thanks {     min-height: 35px;     background-position: 10px 50%;      /* position of folder icon */     background-repeat: no-repeat; }  dl.thanks dt {     padding-left: 45px;                 /* space folder icon */     background-repeat: no-repeat;     background-position: 5px 95%;       /* position of topic icon */     width: 45%; }  dd.lastpostthanks {     width: auto;     font-size: 1.1em; } dd.lastpostthanks span {     display: block;     padding-left: 5px; } /* list in forum description */ dl.thanks dt ol, dl.thanks dt ul {     list-style-position: inside;     margin-left: 1em; }  dl.thanks dt li {     display: list-item;     list-style-type: inherit; } li.header dl.thanks {     min-height: 0; }  li.header dl.thanks dt {     /* tweak headers alignment when folder icon used */     padding-left: 0;     padding-right: 50px; }  /* forum list column styles */ dl.thanks {     min-height: 35px;     background-position: 10px 50%;      /* position of folder icon */     background-repeat: no-repeat; }  dl.thanks dt {     padding-left: 45px;                 /* space folder icon */     background-repeat: no-repeat;     background-position: 5px 95%;       /* position of topic icon */ }  /* icon images ---------------------------------------- */ .icon-thanks            { background-image: url("./images/icon_thanks.gif"); background-repeat: no-repeat; } .icon-thanks_toplist    { background-image: url("./images/icon_thanks_toplist.gif"); background-repeat: no-repeat; }   /* profile & navigation icons */ .thanks-icon:before {     width: 60px;      background-position: -3px -1px;      background-image: url("./images/icons_button_likes.png"); } //.thanks-icon:hover:before{ background-position: -3px -19px; }  .removethanks-icon:before {     background-position: -18px -2px;     background-image: url("./images/icons_button_likes.png");  } .removethanks-icon:hover:before {background-position: -18px -20px; }  .thanks_reput_image_back {     background:  url(../../../images/rating/reput_star_back.gif);     background-repeat: repeat-x; } .thanks_reput_image {     background:  url(../../../images/rating/reput_star_gold.gif);     background-repeat: repeat-x; } 

thanks.

you can add background-size:cover; scale background image large possible background area


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -