Beiträge von Joseph Rézeau

Nutzerbild von Core developers Nutzerbild von Plugin developers Nutzerbild von Testers Nutzerbild von Translators

Hello Bente,

I think I've found the reason for the different behavior of the .generalbox class in #mod-forum-view on the one hand and in #mod-assignment-view on the other. Unfortunately, there are still a number of "hard-coded" styles hanging around in Moodle, although they have been removed gradually in the successive versions. Anyway, I've found out that the .generalbox table in the #mod-forum-view module has this code:

<table id="intro" class="generalbox" align="center" border="0" cellpadding="5" cellspacing="0" width="70%">

whereas the equivalent .generalbox table in the #mod-assignment-view module has this code:

<table id="intro" class="generalbox" align="center" border="0" cellpadding="" cellspacing="0">

Well, if you put the following style rule in your CSS, then the max-width will work for both places. No guarantee that it will also work in other parts of Moodle, so use with care.

.generalbox {
width:100%;
max-width:768px;
}

Tested with Moodle 1.6 and 1.7

Joseph