Posted by Complicated Scroll Box

Vasyncia ☄️ [G1
Quad Dawn] (#135075)


View Forum Posts


Posted on
2018-01-27 13:41:26
So, I've gotten better at CSS as days go by.
There are just a few things I'm struggling with. (sorry for spamming this with my "I need help posts" by the way)

I wanted to know how to make a complicated scroll box. Everything I've gone through has shown me the usual scroll box. Here's an example of what I'm trying to learn;

https://gyazo.com/6e916674569da7610a9d3bd48960325a?token=5f647081df577d29d50b4fbe23f1ef0f



Hrt Icon 0 players like this post! Like?

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2018-01-27 13:57:10
Hiya!

That is what is called an expanding div box.

You can use the following code for it:
CSS:
.name {
height: #px;
padding: #px;
overflow: hidden;
margin-bottom: 10px;
transition: height #s;
}

.name:hover {
height: #px;
overflow: auto;
}

HTML:
<*div style="width:#px;background:#HEXCODE;border:#px solid;"* class="name"*>Text<*/*div>

You can change out name for just about anything your heart desires as long as both the CSS and HTML names match.
Also, be sure to remove any *'s, replace any #'s with numbers and replace #HEXCODE with a color code.

Hope it helps!



Hrt Icon 0 players like this post! Like?







Memory Used: 621.40 KB - Queries: 0 - Query Time: 0.00000 - Total Time: 0.00370s