Bailey Posted December 26, 2017 Posted December 26, 2017 Hello everyone, I have created a nice looking badge that you can configure and include on your website: Image looks similar to, but not exactly like: Please use .svg not .png or .jpg Direct link:https://img.shields.io/badge/Powered By-HelioHost-F39433.svg?style=for-the-badge&link=https://bailey.guru&link=https://heliohost.org You can include this in HTML and define the height. I recommend only defining height OR width not both. <a href="https://heliohost.org"> <img alt="Powered By HelioHost" style="height:100%" src="https://img.shields.io/badge/Powered By-HelioHost-F39433.svg?style=for-the-badge&link=https://bailey.guru&link=https://heliohost.org" /> </a>Append &colorB=[HEX Colour] (for example &colorB=BD5D38) to the end of the URL to change the background colour behind "Heliohost" For example ...//heliohost.org&colorB=BD5D38 Quote
miwilc Posted December 26, 2017 Posted December 26, 2017 Can the size be reduced to the default?, like the badge sizes on shields.io Quote
Bailey Posted December 26, 2017 Author Posted December 26, 2017 That is the default for that style but you can change the height using CSS 1 Quote
maicol07 Posted December 29, 2017 Posted December 29, 2017 Great badge @Bailey!But there are two syntax errors:the style keyword isn't separated from the alt onethe </img> tag isn't necessary (see here: https://www.w3schools.com/tags/tag_img.asp)So the correct code is: <a href="https://heliohost.org"> <img alt="Powered By HelioHost" style="height:100%" src="https://img.shields.io/badge/Powered By-HelioHost-F39433.svg?style=for-the-badge&link=https://bailey.guru&link=https://heliohost.org"> </a> Quote
Bailey Posted December 29, 2017 Author Posted December 29, 2017 Thanks, I corrected this on my own website but forgot to correct here. Edit: Corrected thanks to @maicol07 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.