Posted by Boxes and Text Slides

Polaroid, the mfing
Pie Lord (#163486)


View Forum Posts


Posted on
2019-12-01 20:53:35
I've seen some profiles were when your mouse hovers on the header, the text slides out from the bottom. I've looked around, and all of the ones I could find were things like div boxes or columned ones, which I'm not looking for.

I'd really appreciate the code for this, as I love the way it looks.



Hrt Icon 0 players like this post! Like?

Keina [Not Active] (#50109)

Lone Wanderer
View Forum Posts


Posted on
2019-12-03 11:43:22
Hiya Polaroi!

You would need CSS to accomplish this but here's the code! If you plan on using it however, make sure to remove any *'s, replace any #'s with numbers and replace any #HEXCODE with a color code.

CSS:

.classname {
height: #px;
padding: #px;
overflow: hidden;
margin-bottom: 10px;
transition: height #s;
}

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

HTML:

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


You can change out classname for just about anything your heart desires as long as both the CSS and HTML class names are identical. Also, keep in mind that it is case sensitive.
Example:

CSS:

.ExpandDiv {
(Code here, this is an example so I won't re-write the required code.)
}

.ExpandDiv:hover {
(Same deal here)
}

HTML:

<*div style="StyleGoesHere" class="ExpandDiv"*>Text<*/*div>


If you were to put Expanddiv for any of the class names it wouldn't work properly so make sure to triple check your code.

I hope this helps!



Hrt Icon 1 player likes this post! Like?







Memory Used: 625.20 KB - Queries: 2 - Query Time: 0.00083 - Total Time: 0.00429s