Kaias C. said:
Vince said:
Do you mind if I add that to the CSS Wizardry page on the wiki? Very slick.
i'd be glad to contribute :D
DriftingNitro, can you try to describe your project ?
The project, or at least this part of the project is as follows:
https://jsfiddle.net/nk0y2qe7/73/
This JS fiddle link will show more of what I'm doing. Sorry I didn't open with this.
You'll have to excuse the excess CSS stuff that's referring to other parts of the character sheet.
The 'health bar' CSS is at the bottom of the CSS section.
I'm working on a custom character sheet, and have an injury system that also doubles as a psuedo HP system. How it plays mechanically in the game is that your max "HP" is your 10+con+half your prof bonus, so it changes.
The bar is to represent,
roughly how close you are to dying. It's for styling, and to make the screen more visually interesting. I'm willing to compromise with setting the bar to have values between 1 and 20, and it simply won't exceed the value that the 'health_max' is.
As it stands I have the formulas how I want them, I'm trying to add the bar above the anatomy chart to try and enhance the sheet visually.

EDIT: and just to clarify, I have been testing in roll20, here is how this current implementation looks.

EDIT 2: Needed to put
disabled="true"
on the hidden attribute for current health, my bad.


But in any case the changing maximum is something I'm just willing to compromise on if there isn't a better way to implement. Maybe something involving percentages would work?