Forum Discussion
SteveFlowers
13 years agoCommunity Member
Example files: Generating a certificate from Storyline
This example demonstrates how you can take user input and generate a certificate for printing. Any Storyline variable or score can be used to generate the output. The file and file add-ins are both ...
YoniH
11 years agoCommunity Member
Keith Kemsley said:
Hi All,
CENTERING LEARNER'S NAME
I'm new to CSS/JavaScript...
With absolute positioning, I can center fixed-length information but I cannot seem to center the +learnerName+ because it is variable length. Is there a way to center the learner's name? (It doesn't have to be absolute positioning. That's just what the sample file seems to use.)
Thanks in advance for any code help on this!!!!
p.s. I did put in the requisite 3 hours of work before bothering y'all with this.
@Keith Kemsley
position: absolute;
left: 0px;
text-align:center;
width:100%;
This works to make my text centered regardless of the text length.
Good luck.