Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...css padding affecting table widthcss padding affecting table width
Previous
 
Next
New Post
2/24/2006 3:54 PM
 

I'm trying to set up my container template so that it has a a 1px clear border all the way around.  Padding in the skin.css file does this nicely, except that it widens the main table so that my border images for the page do not line up.  If I set padding to 0, everything lines up perfectly. Can anyone help?

Here is the relevant part of the skin .ascx file:

   <table cellspacing="0" cellpadding="0" width="647" border="0">
      <tr>
        <td class="toppane" colspan="5" id="TopPane" runat="server" valign="top" align="center">
        </td>
      </tr>

      <tr valign="top">
        <td class="leftpane" id="LeftPane" runat="server" valign="top" align="center">
        </td>

        <td class="contentpaneleft" id="ContentPane" runat="server" valign="top" align="center">
        </td>

        <td class="middlepane" id="MiddlePane" runat="server" valign="top" align="center">
        </td>

        <td class="contentpaneright" id="RightContentPane" runat="server" valign="top" align="center">
        </td>

        <td class="rightpane" id="RightPane" runat="server" valign="top" align="center">
        </td>
      </tr>

      <tr>
        <td class="bottompane" colspan="5" id="BottomPane" runat="server" valign="top" align="center">
        </td>
      </tr>
    </table>

 

Here is the relevant part of the skin.css file:

.leftpane {
 width: 33px;
 height: 387px;
 background-image: url(images/left_3.jpg);
 padding-left: 0px;
 padding-right: 0px;
 padding-top: 0px;
}
.contentpaneleft {
 vertical-align: top;
 width: 266px;
 background-image: url(images/back_13.jpg);
 padding-left: 1px;
 padding-right: 1px;
 padding-top: 1px;
}
.middlepane {
 width: 50px;
 background-image: url(images/sword.jpg);
 padding-left: 0px;
 padding-right: 0px;
 padding-top: 0px;
}
.contentpaneright {
 vertical-align: top;
 width: 266px;
 background-image: url(images/back_23.jpg);
 padding-left: 1px;
 padding-right: 1px;
 padding-top: 1px;
}

.rightpane {
 width: 32px;
 height: 387px;
 background-image: url(images/right_3.jpg);
 padding-left: 0px;
 padding-right: 0px;
 padding-top: 0px;
}

If I change all the padding settings to 0px, everything lines up

 
New Post
2/25/2006 2:14 AM
 

I haven't tested your code but I will tell you that when I was working with Chris Paterra on the grids alternate rows and trying to get the pixels to line up - it drove us mad..

You need extra classes in it it compensate for left and right and top and bottoms..

Is this the effect you are trying to achieve?

Even Display of Borders

This has got several CSS classes to manage top left, top right, top middle, between the top and middle and bottom, bottom left, bottom middle and bottom right.

Even display of information can be dececeptively sneaky in getting right. That's how we accomplished this anyway.

Does that help at all?

Nina Meiers


Nina Meiers My Little Website
If it's on DNN, I fix, build, deploy, support,skin, host, design, consult, implement, integrate and done since 2003.
Who am I? Just a city chic, having a crack at organic berry farming.. and creating awesome websites.
 
New Post
3/10/2006 8:12 AM
 
I figured it out...I'd forgotten that adding padding increases table size by the amount of the padding.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...css padding affecting table widthcss padding affecting table width


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out