Padding Padding
Janet
Systems
 Register  Login 
Telephone  01628 566 178
Website Design, Hosting and Software Services
  Search 
Padding
corner Padding corner
Padding Padding
corner Padding corner
 DotNetNuke Articles

I spent some time yesterday trying to remove the 2 pixel border around an image on a web site. My skin for the web site had no cellpadding, but there was definately a border around the image. My skin for the web site divided the page in two, a large image to be supplied by the site owner on the left and contenton the right. This was proving to be annoying because I wanted a large image on the left to butt up against the content on the right, but there was always a small gap.

I found that when the container is not specified DotNetNuke uses a default container designed with no title. This container is located in the directory '\Portals\_default\Containers\_default', the file is called notitle.ascx.

The code presented below is my replacement for this file. I included this with the containers for the skin.

<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%">
  <TR>
    <TD id="ContentPane" runat="server">
      <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">
          /TD>
        </TR>
      </TABLE> 
    </TD>
  </TR>
</TABLE>

Now select Module Settings for the area to be adjusted.

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

Hopefully this will save you some of the time spent by me yesterday.

NAT August 2005 (Revised)


This article viewed: 1232 times Back

Copyright © 2004-2007 Janet Systems Ltd.

 Print   

For DotNetNuke modules and skins take a look at:

Snowcovered

DotNetNuke Website design and hosting from £15.00 per month. More...

Looking for a website design company in the Thames Valley, call us on 01628 566178

DotNetNuke Modules
DotNetNuke Modules availalble from Janet Systems

DotNetNuke Skins
DotNetNukeSkins.gif

from Janet Systems

Padding
Copyright 2002-2008 Janet Systems Ltd.   Terms Of Use  Privacy Statement Saturday, May 17, 2008