Posted by CSS FAQ, Help and Neat Things [+IMGs]

Hok-Z|
𝑴𝒂𝒍𝒆𝒏
π’Šπ’‚ (#41458)


View Forum Posts


Posted on
2022-11-23 22:48:43
This thread will be undergoing a reformat to assist with readability! Please be patient as some sections may not have been updated!

PLEASE LET ME KNOW IF YOU HAVE QUESTIONS.
This thread is live! Meaning it's going to be updated with topics people ask about! Thank you for contributing. β™₯
-----
lioDevs is a beginner-friendly clan dedicated to coding across Lioden. Have a question? Stop on by.



You can open images in a new tab to view them full-size!

TABLE OF CONTENTS:

You can use this as a General CSS Help Thread!

When I find time, I will update this thread with new information. If you can't wait for the thread to be updated, ask me for help!

There are sometimes MULTIPLE WAYS to achieve something in CSS. It's not always black and white, although a majority if not all of these methods below are processes I've personally used, learned from others or even discovered myself. They might not be the best way, but they are a way to get what you want. Never stop learning!




Hrt Icon 8 players like this post! Like?

Edited on 31/08/24 @ 16:49:45 by Hok-Z | π‘Ήπ’‚π’π’π’Š (#170947)

*Ashrinn*G1 13bo
7xBush Meteor (#390700)

Sapphic
View Forum Posts


Posted on
2023-05-03 14:47:09
I have nearly completed my first CSS, and I am mainly using the territory page source, but I've hit a roadblock. Does anyone know the code to replace the King Dynasty, Pride Dynasty, Achievements, and Showcase? I changed the image, but I did it improperly, as it completely erased the box and left only the image without the text. Thank you so much!



Hrt Icon 0 players like this post! Like?

🌲Glamorous🌲
[G1 Green] (#365062)


View Forum Posts


Posted on
2023-05-06 06:16:50
I was curious on how people do the β€˜I support’ and β€˜I don’t support’ buttons



Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-06 07:56:11
@Gwyn Sorry for the delay! I'll grab that for ya after work ^^

@Xtherin - Those buttons are limited to the site's forum for suggesting changes and additions to the game. They cannot be changed by html, and linking css won't work on the forums.



Hrt Icon 2 players like this post! Like?

FreeDino9568 (#206615)

Aztec Knight
View Forum Posts


Posted on
2023-05-07 13:56:06
Hey! Is there a clan CSS template?



Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-07 20:00:18
I'm sure I could whip one up for ya!



Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-07 23:38:36
@*GwynD'Lynn* G2 Obs Spotted (#390700) ~ If you're only looking to replace the images, use the following:

img[src$="ancestors.jpg"] {
content: url("https://i.imgur.com/KingDynasty.png") !important;
}

img[src$="ancestorsfem.png"] {
content: url("https://i.imgur.com/PrideDynasty.png") !important;
}

img[src$="achievements.jpg"] {
content: url("https://i.imgur.com/Achivements.png") !important;
}

img[src$="showcase/banner.png"] {
content: url("https://i.imgur.com/Showcase.png") !important;
}


So sorry for the delay <3



Hrt Icon 1 player likes this post! Like?

*Ashrinn*G1 13bo
7xBush Meteor (#390700)

Sapphic
View Forum Posts


Posted on
2023-05-08 08:14:38
No worries! Thank you so much!!



Hrt Icon 0 players like this post! Like?

ʚ🩷ɞ tawny 15BO
Jag Snowflake (#251887)


View Forum Posts


Posted on
2023-05-08 14:01:01
Hi! I'm in the middle of losing my mind over something very small. I cannot for the life of me figure out what controls the text for send a gift/view wishlist. I can change the gift image no problem, but I can't seem the figure out what controls the text. This isn't a problem for all my CSSs, but when I use ones that have a large typeface, hovering over the "send a gift" option makes the text freak out. You can see for yourself in my den. I've tried setting all the "hover" options I can find in my code to increase the text size by 0%, but nothing at all seems to affect the "send a gift" text. This is driving me CRAZY, so I really hope somebody can help :,)



Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-08 16:42:52
That's certainly a fascinating issue... I'll take a look!



Hrt Icon 0 players like this post! Like?

ʚ🩷ɞ tawny 15BO
Jag Snowflake (#251887)


View Forum Posts


Posted on
2023-05-08 16:51:09
i'd really appreciate it! it's one of those issues that i keep coming back to and trying to fix with absolutely 0 luck.



Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-08 16:54:46
Here, try this out!

a[href="/transfers.php?mem=251887"] {
font-size: 15px !important;
}



Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-08 23:44:31
@Master FreeDino9568 (#206615)
Whipped up a super quick template for ya!

<link rel="stylesheet" type="text/css" href="https://dl.dropbox.com/s/losa8azkrdejmdp/ClanTemplateQUICK.css?dl=0">



Hrt Icon 0 players like this post! Like?


Edited on 08/05/23 @ 23:44:38 by Hok-Z| π™ΌπšŠπš›πšŠ πš‚πš˜πšŸ (#170947)

L. Corporal Quiqi
β˜‚οΈ ✈ (#371719)


View Forum Posts


Posted on
2023-05-15 16:18:28
do u know how to add like a lil left corner box that expands when u hover ove rit like this?

profile



Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-15 22:49:14

This is how Katie did it!~ (From her F2U CSS)

/*Free to use CSS template by Katie (#106445).
This code may be altered, edited, or re-uploaded.
This template may be used to create paid codes (pre-mades and commissions).
Please do NOT remove this credit, unless your coding becomes unrecognizable from this one!*/

.smallhoverbox {
position: fixed;
left: 0;
bottom: 0;
background: rgba(13, 13, 13, 0.6);
color: #D6D9C1;
padding: 10px;
border: none;
border-radius: 10px 10px 10px 10px;
margin: 10px;
height: 50px;
width: 18%;
overflow: auto;
transition: 2s
}

.smallhoverbox:hover {
height: 600px;
width: 20%;
}
-------------------------------
Some explanation:

- position:fixed; means that the position will be locked to whatever parameters left: and bottom: are set to.

- left: and bottom: are currently set to have the box appear at the bottom left of the screen.

- padding: 10px; adds a slight padding to the inside of the box. It ensures that none of the images or text will be absolutely flush with the borders of the box, making it neater and more legible.

- border & border-radius: are both optional here. Change them 'til your heart's content!

- margin: 10px; adds a type of "padding" or blank space around the outside of your box. It's recommended to keep for neatness, and showing that the box fits "within" your den css.

- height: & width: are specified sizes of your box. The first set of height/width is what the box appears when at rest and isn't being hovered over. .smallhoverbox:hover controls what the box changes to once a mouse is over it.

- overflow: auto; controls where the extra content goes that doesn't fit within the specified height/width. In this case, we want it to be hidden but we ALSO want to be able to scroll through it when we want to. Having it set to auto ensures it's hidden, but the ugly scrollbars aren't visible until necessary. Yay!

- transition: 2s controls the amount of time it takes for the full box to appear and collapse.





Hrt Icon 0 players like this post! Like?

Hok-Z |
π‘Ήπ’‚π’π’π’Š (#170947)


View Forum Posts


Posted on
2023-05-15 22:53:38
For clarification the HTML you'd use is;

<div class="smallhoverbox">



Hrt Icon 0 players like this post! Like?







Memory Used: 629.34 KB - Queries: 2 - Query Time: 0.00080 - Total Time: 0.00475s