volpeon, (edited ) This banner is more complicated than you'd think. :drgn_mlem: I wanted to give the header a banner-colored background that (almost) never looks disconnected from the banner.
Your first instinct probably would be to make the header transparent and add some empty space to the top of the image, but then then the padding scales with the image and you get a humongous padding on wide viewports and a way too small padding on narrow viewports.My solution is a border-image which uses a 1px slice from the banner image. It scales exactly how I want most of the time.
Add comment