prospitian: (6)
Courtney ([personal profile] prospitian) wrote in [community profile] photosynthesis2018-11-23 05:50 pm

info table/navigation: say what you wanna say


An information table designed for a tall, narrow image; it'll adapt to the image size!



Some quick notes about using this code!

Ideally, you're going to want to put this under a cut, and have custom comment pages turned off—I can't guarantee that it won't do funky things otherwise, but you're more than welcome to try things out otherwise and see how it goes.

This code reacts and responds to the size of the image you're using! The informational right side shouldn't be longer than the image (except the header at the top and the links at the bottom). If you're having issues with the vital stats at the top misaligning or taking up more than one line, try a narrower image; if the scroll boxes are too small for your liking, try a taller image. It's okay to just add a bunch of transparent space on either end of the image to make it taller!

Check out the example code live here!



I've marked instructions and things to change throughout the code, but be on the lookout for:
CHARACTER NAME, for the header at the top
HEADER COLOR, a hex code (add the # at the beginning!) for the header at the top.
CATEGORY COLOR, a hex code (add the # at the beginning!) for each scroll box category.
LINK COLOR, a hex code (add the # at the beginning!) for the links at the bottom.
IMAGE URL, the URL of your image.
IMAGE WIDTH, the width in pixels of your image.
IMAGE HEIGHT, the height in pixels of your image.

Feel free to change the fonts, headings, and so on as you please. The fonts used are MS Gothic for the major headers, Georgia for the minor headers and personal links, and Arial for the text and the credit links.

As always, let me know if you need a hand with anything, and do not move or remove my credit!
silvertongueheir: (Default)

[personal profile] silvertongueheir 2018-12-10 01:38 pm (UTC)(link)
This code looks super-nice with tall images, but I was wondering-is there a way to add background colors to the various textboxes/headers? Mainly because I think it looks a little plain with just the normal background color.
varnish: (Default)

[personal profile] varnish 2019-02-16 07:33 am (UTC)(link)
Hello! I love this code and would like to use it for my account, but I’m afraid the text area on the right causes the whole table to extend beyond the image whenever I add more lines of text, if that makes sense. It looks fine in a code checker, but for some reason gets messed up in DW, so I’m not sure if that’s DW’s problem or something I’ve done along the way.

EDIT: wow ok that image link wasn’t working so here it is again without the hyperlink! https://imgur.com/a/v6dw5ie Thank you!
Edited 2019-02-16 07:36 (UTC)
varnish: (❥ how soon will I meet my end?)

[personal profile] varnish 2019-02-16 08:54 am (UTC)(link)
... oh my god and it figures that as soon as I ask this I managed to get it fixed. SORRY FOR THE BOTHER! At any rate, thank you again for the code! I'll be using it here!
bloodspring: (Default)

[personal profile] bloodspring 2020-07-09 04:05 pm (UTC)(link)
Going out on a limb here to follow up on something more than a year later, but- I'm actually encountering the same issue as above, so do you have any insight as to how you fixed it?
bloodspring: (Default)

[personal profile] bloodspring 2020-07-09 07:23 pm (UTC)(link)
Here is what I have currently... Even when I've tried starting fresh with the original code, as soon as the body text is inserted it acts up, so I'm really not sure what's going on. :(

I noticed on the live preview there's another scrollbar encompassing the whole table? I don't seem to have that, so I wonder if it's important at all.

Sorry for the bother, but also thank you for taking the time!
bloodspring: (pic#14140257)

[personal profile] bloodspring 2020-07-10 09:08 am (UTC)(link)
Oh!! Shoot, I should've known I'd miss something so simple. I'm sorry for the trouble! Thank you so much though!!
shadowcat: ([OTP] Michael/Maria Frames/Roses)

[personal profile] shadowcat 2019-05-25 07:28 pm (UTC)(link)
This is going to sound like an odd question but is there a way to add a fourth section beneath Abilities that won't mess up the coding?

I'd like to use this for an app for a game but it needs to have Personality, Abilities, History, Modern History.