Ability to Set Margin in Entry Box
January 23, 2018 12:00 AM
I'd like to be able to set a margin inside an entry box the way that I can with a regular text box.
Discussion (2)
I know we have this written up somewhere... it's really becoming essential to making nice looking training. I'll see if I can get the product team to put a priority on it!
Until then here is a workaround ...
If you are on Lectora 17.1.1 or Lectora Online you can do the following to format all your entry fields for your published course. Add a Title level On Show Action that Runs Javascript with this:
triv$('input,select').css('border','0px').css('padding-left','10px').css('border-radius','10px');
That gives you input fields without borders, padding on the left, and rounded edges. You can experiment with the css settings to make it look how you would like. (See attached screenshot)
If your title is a responsive title you will also have to add another action to do the same when a device rotation happens.
![Capture2.png](https://community.elblearning.com/hubfs/CohortiumThreadImages/6cb379f1a100ca3decc353f48db25866.png)
![Capture.png](https://community.elblearning.com/hubfs/CohortiumThreadImages/0c5a4e422ab70b4dfaaf603783623960.png)
Thanks, Joe - I appreciate your prioritizing this and providing a JavaScript workaround!
undefined
(Sorry for the delayed response...I did see your response earlier, via email, but have been too overwhelmed with work this past week to even go in and post this message.)
Discussions have been disabled for this post