News
Welcome to NeoRHDN! This place is still a work-in-progress, so pardon the construction...

Chat on Discord
Views: 800,649
Sections: Documents | Utilities | ROM Hacks | Games | Translations | Homebrew | Fonts | Community
Site: Main | Rules/FAQ | Discord | Memberlist | Latest posts | Stats | Ranks | Online users
12-03-24 05:50 PM
Guest: Register | Login

0 users currently in Meta | 5 bots

Main - Meta - Is there a way to collapse text? (1)


voliol
Posted on 08-23-24 04:47 PM Link | ID: 413

Goomba

Level: 7

Posts: 12/20
EXP: 920
Next: 528

Since: 08-19-24

Last post: 30 days
Last view: 13 days
Hello, I am wondering if there is a way to collapse text/markup, so some of it is hidden until the reader clicks a button? I'm used to forums having this feature, to hide big images/code/blocks of text that most readers of a thread may not be interested in reading/scrolling by, so not having it feels impractical and off. The Bay 12 Forums (which I am most used to, a simple machines deal) uses spoiler tagging for it, but here spoiler tagging instead works like on any modern website, boxing out the text without decreasing its size. Is there some other way to collapse/hide text?

And if there isn't, and it also isn't a planned feature, I assume you couldn't on the RHDN forum either? If so, how did you deal with it (I know there are some veterans here)? Was the standard practice just including images/code etc. unformatted, or linking to external sites like pastebin? Or not including them at all?

____________________
Developer of the Universal Pokémon Randomizer FVX, dabbling Dragon Quest VI hacker

Yuri Bacon
Posted on 08-23-24 05:17 PM Link | ID: 414

Shyguy

Level: 13

Posts: 11/86
EXP: 8316
Next: 1951

Since: 08-16-24
From: MY MOM!

Last post: 16 days
Last view: 1 day
If there is any way to do it, I'm not aware of it.

But! This forum does allow you to embed HTML / CSS into your post (that's how post layouts like mine work), so maybe you could find a way to "fake it" like that (IDK much about HTML / CSS tho TBH, so IDK if that alone would make it possible, but it's worth a shot).

____________________
Build a man a fire, and he's warm for a night. Set a man on fire, and he's warm for the rest of his life.

Rexius55
Posted on 08-23-24 07:30 PM (rev. 2 of 08-23-24 07:32 PM by Rexius55) Link | ID: 420

Tektite

Level: 11

Posts: 40/58
EXP: 4666
Next: 1319

Since: 08-14-24
From: Outset Island, The Great Sea

Last post: 78 days
Last view: 53 days
There is a decent way to do it, using the "resize" and "overflow" properties in CSS.

Resize Property
Overflow Property

I don't have an example of this at this time but we'll see if I can make some example code for you that would probably go in your post header or somethin'.

____________________
I do requests (reverse-engineering, programming, music, spritework, writing, etc.). I'm always learnin'.

Status: Hands are full.

I post wherever is on my Linktree. If you see my stuff anywhere else, it wasn't me.

RT-55J
Posted on 08-23-24 08:24 PM Link | ID: 421

Micro-Goomba

Level: 6

Posts: 15/16
EXP: 675
Next: 232

Since: 08-14-24

Last post: 91 days
Last view: 8 days
Sadly, there is no way to do this
None whatsoever. :3c



Yuri Bacon
Posted on 08-23-24 08:40 PM (rev. 2 of 08-23-24 08:44 PM by Yuri Bacon) Link | ID: 422

Shyguy

Level: 13

Posts: 12/86
EXP: 8316
Next: 1951

Since: 08-16-24
From: MY MOM!

Last post: 16 days
Last view: 1 day
So, I spent a while on w3schools tryna figure out a good way to make a div expand on hover, and I think this code came out pretty well.

Hidden Text (hover to view)

So, here's the HTML/CSS code I whipped up to make this work. Feel free to use it. I made very liberal use of the Preview button as I made this post :P

<style>
.hidden
{
height:1.2em;
width:3.6em;
overflow:hidden;
padding:5px;
background:#555555;
color:white;
}
.hidden:hover
{
width:99%;
height:auto;
overflow:visible;
}
</style>Hidden Text (hover to view)
<div class="hidden">Hidden

Your Text Here!</div>


EDIT: Just saw RT-55J's neat little trick after I made my post, but damn that is simple and clever!

<details><summary>Sadly, there is no way to do this</summary>
<br>None whatsoever. :3c
<br></details>


____________________
Build a man a fire, and he's warm for a night. Set a man on fire, and he's warm for the rest of his life.

voliol
Posted on 08-23-24 08:55 PM Link | ID: 423

Goomba

Level: 7

Posts: 13/20
EXP: 920
Next: 528

Since: 08-19-24

Last post: 30 days
Last view: 13 days
Huh, html/css in posts, funky stuff.
[Tries to play around with css/html before getting ninja'd by Yuri Bacon, who then points out RT-55J had it working and posted before the playing around even started]

Thanks a lot!

secret bidoof




____________________
Developer of the Universal Pokémon Randomizer FVX, dabbling Dragon Quest VI hacker

MacUser
Posted on 08-23-24 09:19 PM Link | ID: 424

Shyguy

Level: 13

Posts: 27/91
EXP: 8845
Next: 1422

Since: 08-21-24

Last post: 4 days
Last view: 21 hours
i just started to learn how to html




____________________
8-bit is enough.

NinCollin
Posted on 08-25-24 06:41 AM Link | ID: 475
Root Administrator

Red Koopa

Level: 15

Posts: 56/125
EXP: 14895
Next: 1489

Since: 08-12-24

Last post: 17 days
Last view: 17 days
Yeah its one of those things that theres no easy BBCode tag for, but that you can do manually if you know how

Check out some of my websites!
imageimageimage

Main - Meta - Is there a way to collapse text? (1)

Affiliates:


Acmlmboard v2.5.6+neo (2024-08-13)
© 2005-2024 Acmlm, Emuz, NinCollin, et al.

Page rendered in 0.083 seconds. (849KB of memory used)
MySQL - queries: 71, rows: 436/444, time: 0.069 seconds.