Left aligning when using Display Left Menu?

Left aligning when using Display Left Menu?

by Erich Nielsen -
Number of replies: 3
Hi guys,

the strangest thing. I am using Display Left Menu but all text in the main area becomes centered in IE and Firefox. When I am not using Display Left Menu, all text is as default left-aligned in both browsers.

I have (in Firefox) left-aligned text manually, but that doesn't show in IE. However, it does show if I make a manual left-alignement in IE as well (puh...).

I have also changed the font-size and line shift-size for the Left Menu which looks nice in Firefox, but that doesn't show up in IE...

So, I have two questions:
How do I make a general left align of text when I have the Display Left Menu?
How do I make the font-sise and line shift-size the same in both browsers?

Erich N
PS. I have flushed the cache in the db, in IE and Firefox when testing.
Average of ratings: -
In reply to Erich Nielsen

Re: Left aligning when using Display Left Menu?

by Mark Nielsen -
I remember having this problem of left-alignment in IE. I looked in 1.6 lesson styles and found this one:
/***
*** Style for page contents (display to student)
***/

.mod-lesson .contents {
text-align: left;
}
Stick this into your mod/lesson/styles.php. Next, add the contents class to mod/lesson/view.php. Find this chunk of code (around line #564):
            if ($lesson->slideshow) {
echo format_text($page->contents);
} else {
print_simple_box(format_text($page->contents), 'center');
}
Change it to this:
            if ($lesson->slideshow) {
echo '<div class="contents">'.format_text($page->contents).'</div>';
} else {
print_simple_box('<div class="contents">'.format_text($page->contents).'</div>', 'center');
}
If it fixes your problem, I'll add it to 1.5 cvs.

As for this problem:
How do I make the font-size and line shift-size the same in both browsers?

I'm having a hard time visualizing what is wrong. Could you post screen shots?

Cheers,
Mark
In reply to Mark Nielsen

Re: Left aligning when using Display Left Menu?

by Erich Nielsen -

Hi Mark,

tried to implement it on managingcrisis.com, but it didnt'work. Ouch. But thanks for the try.

Nevertheless, I will go ahead and make the necessary changes manually and hope that more people will use firefox.

All the best from a sunny Stockholm,

Erich Nielsen

In reply to Erich Nielsen

Re: Left aligning when using Display Left Menu?

by Alison Schubert -
I'm having the same problem in IE but not in firefox and being but a lowly teacher without access to the code itself I'm hoping the manual fix you mention might work.  I've tried both the left alignment and the paragraph direction but it doesn't seem to help.  Is there some other option in the editing that will work?

PS.  I did clear the ie cach and try again, but there was no change.