"<script type=""text/JavaScript""> osjs('#" + CheckboxId + "').after(""<label for='" + CheckboxId + "' style='margin-left: 5px; position: relative; top: 1px'>" + Label + "</label>""); </script>"
It could be done with CSS like this:
SyntaxEditor Code Snippet
input#RichWidgets_wt40_block_wtMainContent_wtdvdCheckbox { margin-right: 80px; } input#RichWidgets_wt40_block_wtMainContent_wtdvdCheckbox:after { content: "Clickable checkbox label"; margin-left: 16px; white-space: nowrap; margin-right: 200px; }
But I am impressed that it is not possible to create handy radio or checkbox with labels out of the box.
Edit: it can simply be done with standard label element. Maybe not so obvious, but absolutely working.
Hey
another thing it can be done its to surround the radio button and label ( or text ) in a container.
Then in the container in the "Extended Properties" you can use the "OnClick" event to select the combobox
Cheers
Vincent, seems to be overkill. When it can be done with standard features, I will always prefer the standard way. And I don't need to think about how to change everything when I need onclick event for something else. Additionally it looks shifted to the top:
So I think the best way is to set a name to checkbox, so one can use #id and after that add to CSS
label#RichWidgets_wt42_block_wtMainContent_wtLabel1 { margin-left: 0px; }
That looks perfect:
Anyway, thanks for suggestion.