NATION

PASSWORD

[Q] Floatleft overflow in dispatches

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Drongonia
Minister
 
Posts: 3147
Founded: Feb 11, 2019
New York Times Democracy

[Q] Floatleft overflow in dispatches

Postby Drongonia » Mon Mar 27, 2023 10:53 pm

Hi all,

I apologise in advance if there is a better place to ask this question, I did have a quick search for specific factbook help threads but couldn't find any.

What I'm trying to achieve is to have a box within a spoiler that floats left, without having to put a bunch of text at the bottom of the factbook to pad it out. If you remove the [floatleft] value from the box, it stretches across the entire page which I would rather not have.

If it helps you get a better idea of what I'm talking about, here's the dispatch in question:
Visual: https://www.nationstates.net/page=dispatch/id=1856857
Code: https://www.nationstates.net/page=dispa ... 6857/raw=1

If you inspect the code, you can see I have a bunch of empty text at the bottom of the page that looks pretty silly when there are no spoilers are open. If you flick to the visual view you can see that as soon as you open the spoiler, the extra text gets wrapped around it, reducing the blank space at the bottom. If I get rid of the extra text, the box will flow over the white background and look terrible.

My actual question here is: is there a way to have a fixed amount of space at the bottom of my dispatch when I'm using this janky '[floatleft][box] within a spoiler' setup?

Thank you in advance for reading my ramblings!

Edit: I think I've fixed the overflow issue, but would still like to know the 'right' way to achieve a fixed bottom without having to paste in a buttload of filler characters.
Last edited by Drongonia on Mon Mar 27, 2023 11:04 pm, edited 1 time in total.

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads