Remove Border Around Module

An old DotNetNuke had a small border around the module section of the website, despite the skin having no cellpadding set as appropriately in the tables.

I found that when the container was not specified DotNetNuke used a default container designed with no title.This was creating a small 2 pixel border around the module.

This simplistic container, NoTitle.ascx, is located in the directory

/Portals/_default/Containers/_default.

To update the presentation I provided an equivalent NoTitle in the skin.ascx file with the version given below:

<table cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td id="ContentPane" runat= "server"><br />
      <table id="Table2" cellspacing="0" cellpadding="0" width="98%">
        <tr>
          <td valign="bottom" noWrap align= "left"height="34">[ACTIONS]</td>
          <td valign="bottom" noWrap align= "left"height="34">[ICON]</td>
          <td valign="bottom" noWrap align="left" width= "100%"height="34">[ TITLE]</td>
          <td valign="bottom" noWrap align= "right"height="34">[VISIBILITY]</td>
       </tr>
       <tr>
         <td width="100%" colspan="4">
           <hr noshade size= "1">< br />
         </td>
       </tr>
      </table>
    </td>
  </tr>
</table>

To use the revised NoTitle container select Module Settings for the particular module and:

  • Ensure that the option Display Module Title?: is checked.
  • Select the new container type NoTitle under Module Container