'Text Wrapping' problem

'Text Wrapping' problem

by Al Webb -
Number of replies: 3
Hi

I'm having a problem with displaying a lesson (using branch tables). many of the descriptions and responses are long... and both are stretching off screen when displayed. Here's a screen shot:

screen shot

I've been searching for a solution for this - have tried starting from scratch using notepad cut and paste but it's still happening. Any ideas? I'm using Moodle 1.9.7

thanks
Average of ratings: -
In reply to Al Webb

Re: 'Text Wrapping' problem

by Ken Gibson -

Al,

Have you tried changing the Lesson Formating (Update lesson) to slideshow mode?
May help it wrap?

Ken

 

In reply to Ken Gibson

Re: 'Text Wrapping' problem

by John St -
You could also try this css in the theme:

div.branchbuttoncontainer {
overflow: auto;
max-width: 700px;
}

or something similar. That will add scrollbars to the button div if the buttons get too wide...
In reply to Ken Gibson

Re: 'Text Wrapping' problem

by Al Webb -
Thanks - tried slideshow mode but was also failing to wrap.
I'm not sure where to do the css thing - I have a call in to colleagues on the other side of the atlantic!

I think it might be connected with the fact that I am using multilanguage <span...> tags.

I have found a workaround for now anyways:

in the Page Contents, adding <div style="width: 640px;">my content<div>

That fixes if for the 'question' in the branch table, but not the responses

For the responses (Description 1, 2 etc) I am inserting line breaks.

Not a very beautiful solution but it works and looks OK!

thanks again