User talk:StarshipSLS/User Siberian Husky

Infobox images
Hi ,

I just wanted to point out to you how to crop an image when it doesn't really fit the userbox space. You already are using  and   after the image to resize it, but you can also crop an image using a little bit of CSS. For this userbox, try replacing your current  statement with this:

You can post all the html/CSS into The Super-Simple Userbox Maker or add it when you create the page here on Wikipedia. The first part,  and   are limiting the box size to the standard 45px × 45px square, the   statement just makes everything outside of that box invisible. This keeps userboxes at a more standard height and helps you fill in the space better. You still want to use  (to set a max width) or   (to set a max height) to resize the image and you might have to play with it a bit to get the crop/fill where you want it.

The main downside to this method is that it only crops from the upper-left corner of the image, so if there is blank space up and to the left and what you want to highlight is at the right or the bottom of the image, it doesn't work well. Carter (talk) 13:38, 20 May 2021 (UTC)


 * @Tcr25: Thanks so much! StarshipSLS (Talk), (My Contributions) 13:41, 20 May 2021 (UTC)
 * @Tcr25: Wow! It works well! StarshipSLS (Talk), (My Contributions) 13:42, 20 May 2021 (UTC)
 * 👍🏼 Yep, it's a neat little trick... Carter (talk) 14:00, 20 May 2021 (UTC)

, I put in an alternate photo. If you look at the code, you'll also see I played with the  and   to get things to balance out between the photo and the space available. Oh, I also linked huskies, which is usually a good practice for userboxes. Carter (talk) 16:14, 20 May 2021 (UTC)


 * @Tcr25: Thanks so much! StarshipSLS (Talk), (My Contributions) 18:07, 20 May 2021 (UTC)