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.