For the purpose of getting DNN XHTML compliant some changes were made to how the "Module Aling" is rendered.
The "Module Align" can be found in both the control panel, and
in the modules settings, to select the alignment of the content (left, center and right)
Module Align in 4.5.5
In DNN 4.5.5 the "Module Align" got injected dynamically as: align="nnnnn".
Example:
<td id="dnn_ctr373_ContentPane" align="right">
<div id="dnn_ctr373_ModuleContent">
<div id="dnn_ctr373_HtmlModule_lblContent" class="Normal"> Example Text
</div>
</div>
</td>
A module always had an align set and it is applied using HTML markup.
This is not valid XHTML, so we tried to find a solution to that is valid and would not influence existing skins.
In the old situation a skinner could overrule the align option by setting text-aling using CSS.
.dnn_ctr373_ContentPane{
text-align:left;
}
normally you would use another selector of course
The solution in DNN 4.6.0
The easiest solution would have been to use inline styles:
<td id="dnn_ctr373_ContentPane" style="text-aling:right">
<div id="dnn_ctr373_ModuleContent">
<div id="dnn_ctr373_HtmlModule_lblContent" class="Normal"> Example Text
</div>
</div>
</td>
Because inline CSS always precedes over other CSS a skinner could never overwrite this he would use Javascript .
So although this seemed like a logical thing to do it would change the behavior of DNN.
Also for RTL language like Arabic or Hebrew inline styles would be a real problem.
Since align = left is default in DNN, they have to overwrite this somehow, or manually set the align to "right" for every module.
The decision was made to inject a class if you set the module align.
<td id="dnn_ctr373_ContentPane" class="DNNAlignleft">
or
<td id="dnn_ctr373_ContentPane" class="DNNAlignright">
or
<td id="dnn_ctr373_ContentPane" class="DNNAligncenter">
The actual align is set in default.css:
/* used to set the different module align options - from module settings */
.DNNAlignleft
{
text-align: left;
}
.DNNAlignright
{
text-align: right;
}
.DNNAligncenter
{
text-align: center;
}
Since the text-align is defined in default.css, you can overrule the align in either the skins css or portal.css:
.DNNAlignleft, .DNNAligncenter, .DNNAlignright{
text-align:left;
}
Set No Align
One other new option Vicenç Masanas added in 4.6.0 is that you can now set the align for a module to "Not Specified".
I think this should be quite helpful for RTL languages.