Cathedris Themesong

Thu, Oct 21st 2021 10:12   Edited on Sun, May 8th 2022 08:46

Forum CSS

How do you make the backgrounds of threads/comments/posts all fancy and different colours? I love the differentiation.
Thu, Oct 21st 2021 10:21   Edited on Thu, Oct 21st 2021 10:22

Very happy to share! :D  
.user-css .discussion-board-child { padding-bottom: 20px; padding-left: 10px; padding-right: 100px; padding-top: 10px; height: 200px; box-shadow: inset 0 0 50px black; margin: 0px; transition: 0.5s all; }   .user-css .discussion-board-child:nth-of-type(odd background: rgba(150,150,150,0.2 } .user-css .discussion-board-child:nth-of-type(odd):hover { background: rgba(150,150,150,0.25 }   .user-css .discussion-board-child:nth-of-type(even background: rgba(50,120,120,0.2 } .user-css .discussion-board-child:nth-of-type(even):hover { background: rgba(50,120,120,0.3 }
  This is the super super basic CSS I have for it, where I set the style for the posts themselves, and then select the odd/even posts after each for setting the different colour backgrounds!   The little logo peeking in is done in a silly hacky way that undoubtedly has an easier method of implementing, but I'm too lazy to do it proper now that I have it working in this form 😅If you like, I can share that bit too, but it makes use of :before to make another box with the background
Thu, Oct 21st 2021 10:23

Thank you so much! <3 It always helps to have some ready-made code to tweak and see what it does, so thank you, I appreciate it. I'll give this a go soon! <3
Sun, May 8th 2022 08:46   Edited on Sun, May 8th 2022 08:47

Hi, I have really dumb question, but I searched for hours upon hours and simply cannot find an answer out there. I'm a total CSS newbie, but I managed to change some backgrounds, fonts etc. on my World Anvil homepage. Sadly, I simply cannot find a way to set up a background for my discussion boards.   All I managed to do is to change the boxes of the threads themselves, but I have a white border around it all, which I cannot get rid of. I found this thread on my search and was wondering if you could offer any help? I'm sure it's basic stuff, but I literally started with CSS today and it's totally above my head. :(
Powered by World Anvil