Hello Janez,
Option 1
Modify the PHP code of the Cloze question.
Option 2
Include the following code in the HTML of the question text:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function() { $("input.form-control:text").css("padding","0 0 2px"); $("input.form-control:text").css("width","1em"); $("input.form-control:text").css("text-align","center"); }); </script>
Pros
- No administration rights required.
- Applies only to the page where the code is present.
- Continues to work even after upgrading to a new version of Moodle.
Cons
- The code affects the other inputs of the Cloze question and that of other types of questions that are on the same page.
- Applies only to the page where the code is present.
You will get this: