Skip Navigation
/kbin meta @kbin.social TheArstaInventor @kbin.social

To all moderators: Here is how you can add banner using CSS very easily to your Kbin magazines!

Full credit goes to: /u/Pamasich for working on it and helping me out with CSS, the below CSS I will mention is fully made by he/her with my feedback, again thank you!

To all kbin magazine moderators,

Below is the CSS you can use to include your own banner of choice to your Kbin magazine/community:

h1[hidden] {
    height: 12vh;
    background-image: url(https://i.imgur.com/wbZa4eI.png);
    background-size: cover;
    background-position: center;
    display: block;
    color: transparent;
    user-select: none;
}

DEMO: Check m/cars using this CSS

NOTE: Change height's value according to your needs to fit your banner accordingly. You should also replace the image link in the above CSS with your choice, I used imgur to upload the image there, and copy/paste the image's address/link here.

This is what we have so far thanks to /u/Pamasich, and I hope this comes to rescue all of the moderators just like myself.

Why should you add a banner? This simply makes the community look more appealing and welcoming for users to participate, depending on what kind of topic your magazine is based on, a banner is invaluable.

And if you guys have your own further modifications to the given CSS above, feel free to mention them in the comments so everyone else can find this thread useful in the future!

11

You're viewing a single thread.

11 comments
  • There's a hidden h1 at the top of the page?

    That looks nice, but you could also change the margin to margin: 0.25rem 0; margin: 0.5rem 0; so it aligns with the top of the "sidebar-options":

    edit: seems like the margin should be exactly 0.5rem not 0.25

    • that helped a lot! looks dope!

      • That looks awesome, great to see yall making it even better. Can you guys post the full CSS code with the changes here? I'd love to try it myself and an be easier for others who are re-visiting or just visiting this thread in the future as well. Thanks!

        • for me that was just the one you posted, the margin limitless suggested, plus a border radius for rounded edges

          `
          h1[hidden] {
          height: 12vh;
          background-image: url(insert-image-url);
          background-size: cover;
          background-position: center;
          display: block;
          color: transparent;
          user-select: none;
          margin: 0.25rem 0;
          border-radius: 5px;
          }

          `

You've viewed 11 comments.