![]() |
[How To?] OUGC Awards | Add CSS Border around award - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html) +--- Forum: General Support (https://community.mybb.com/forum-176.html) +--- Thread: [How To?] OUGC Awards | Add CSS Border around award (/thread-222276.html) Pages:
1
2
|
OUGC Awards | Add CSS Border around award - Clipz - 2019-03-09 Hello, I need help adding a css border around certain awards. I don't really know what to do to make this happen so help will be appreciated a lot! This is what i want to do: If i can have some help that would be great. The reason i want to do this is because it looks a lot cleaner and neater. RE: OUGC Awards | Add CSS Border around award - Mastersly - 2020-02-20 check this if you still on the forum ![]() <-- removed unwarranted link --> RE: OUGC Awards | Add CSS Border around award - Crazycat - 2020-02-20 In the css of the award, add: Change the color and the weight to match what you want and the border-radius value to round as you need (50% => circle, 0% => rectangle)
RE: OUGC Awards | Add CSS Border around award - Omar G. - 2020-02-20 Here I share how I would do it on a default installation of OUGC Awards. Open ougcawards_award_image and replace with:
Open ougcawards_award_image_class and replace with:
Then, add the following to the bottom of global.css :
I honestly don't know why I didn't added a default class for awards, probably going to do it on next versions. RE: OUGC Awards | Add CSS Border around award - Omar G. - 2020-02-20 Now you shall be able to use Image Template or Class Template awards, the CSS will apply to both, it matters not, since in the post above I mentioned I was using a default / stock installation. I changed nothing else and nothing else should be needed to be changed.That is it. RE: OUGC Awards | Add CSS Border around award - kbilly - 2020-04-14 (2020-02-20, 08:42 PM)Omar G. Wrote: Here I share how I would do it on a default installation of OUGC Awards. I have added the above two codes to the realtive templates and then everything to the global.css, i can't see the border around the awards icons. Already hard refreshed and cleared cache, even on cloudflare. RE: OUGC Awards | Add CSS Border around award - Omar G. - 2020-04-14 Please paste the HTML output here for the full awards box in your profile and your global.css file here, or simply share your forum url.My first guess is your cache isn't updated, but apparently you don't think that is the issue so I can't keep guessing until I got a shot. Provide as many details as reasonably for the support you expect. RE: OUGC Awards | Add CSS Border around award - kbilly - 2020-04-16 I was able to make something like this and i like it. I just used the code as i'm using fontawesome icons as award icons.Thanks for your support. RE: OUGC Awards | Add CSS Border around award - Omar G. - 2020-04-16 Oh, if you are using Font Awesome it might be a better approach to use its internal classes I suppose then. Thanks for sharing your solution. RE: OUGC Awards | Add CSS Border around award - kbilly - 2020-04-17 Hello Omar! I used your provided css to make my awards look different colors. Hence, i used it like this:
In this way, the border was automatically created by using the code from fontawesome ,which i used like this in the award Image/class field:
Now the fontawesome icons look like much better with different colors and this was what i wanted to archieve ![]() Thankyou for your help and time. Regards. |