Posted by Cave CSS Issues

Gallade :3 [G1
09.23.22 RLC] (#326473)

Lone Wanderer
View Forum Posts


Posted on
2023-05-24 13:33:56
I've been trying really hard to learn CSS and HTML, but I have no prior knowledge about anything coding related and it's been four hours so I'm taking to the forums. I'm looking for instructions on how to change the featured lion background- I've seen it done before, but I have no idea how.

This is my featured lion!



This is the background I'd like to give her!




If there are instructions, templates, open commissions, or anything else along those lines, I'd love to see them! While it would be cool if they were whole page codes, I'm not picky as long as it changes the featured lion background.



Hrt Icon 0 players like this post! Like?

Hok-Z | Hiatus (#170947)


View Forum Posts


Posted on
2023-05-24 19:52:54


Hiya! I've got a wonderful guide for CSS Neat things here;
CSS FAQ, Help and Neat Things [+IMGs]

But, so you don't have to go searching - here's this. I put in your linked image so all you have to do is copy/paste.

img[src$="default.png"] {
content: url("https://i.imgur.com/B5pWSiB.png"); }


The first bit controls the background of the Featured Lion.

This second bit controls what displays if you have no Featured Lion set. You CAN just keep this out if you don't want a different image to display when no lion is set. The image displayed will default to the code above.. ^^

.lionImage > img {
content: url("https://i.imgur.com/DisplayNoneImageOverride.png") !important; }


Image Example:
First Code Snip:


Second Code Snip:




Hrt Icon 1 player likes this post! Like?


Edited on 24/05/23 @ 19:53:13 by Hok-Z| π™ΌπšŠπš›πšŠ πš‚πš˜πšŸ (#170947)

Gallade :3 [G1
09.23.22 RLC] (#326473)

Lone Wanderer
View Forum Posts


Posted on
2023-05-24 22:07:08
Omg thank you so much for the code!! I'll definitely check out that forum post too :D



Hrt Icon 1 player likes this post! Like?







Memory Used: 621.98 KB - Queries: 0 - Query Time: 0.00000 - Total Time: 0.00498s