Cannot use a style tag in a text box
Hi,
I added a textbox to a page. I want to make this textbox stand out so I wrapped the html in a div and tried to add a "style" to the div. Works fine until I select "Done" and then, while the "div" remains, the style is removed.
I was just trying to add something like a border with padding.
Please help. The text boxes are a very boring layout / one cannot make things stand out etc. if I cannot do this!
Thanks, Theo
7 replies
-
Hi Theo, unfortunately, style tags aren't allowed, but to make the text stand out, you could use the container option. ( see screenshot)
Another option might be to play around with tables.
-
Hi Alenka,
Many thanks! I had not spotted that option - for me, it was not in an obvious spot. However, the container seems a bit limited - do you know if one can style it in any way e.g. change the border?... I tried adding a style in the container div... it still got stripped.
Tables also seem a bit limited for some things, compared to divs with inline styles.
On "inspecting" the html in one of the courses run by OpenLeanrning "Design a World Class Course on Using OpenLearning" I have seen some styles used (and this seems to be within the RichTextWidget). Do you know if there are some allowed but some not?... know of a list anywhere?
I have also found the HTML snippet widget which seems to be a workaround for all this... seems to let me do whatever I want in terms of html. I may be using it a lot!
Best wishes, Theo