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, ...Nothing can be centredNothing can be centred
Previous
 
Next
New Post
4/26/2006 4:32 AM
 

Hi everyone,

I'm hoping that someone is able to help me. I'm using a container that I downloaded from the old skinning competition website, but it looks like there is a slight bug with it. I'm not overly familiar with skinning, so I'm hoping that someone is able to help me. What happens is this: When I apply the container, all the text in all the containers become left aligned, but still keeping their centre alignment.

That sounds contradictory, I'll try again, everything that should be centred is centred, but then moved to the left of the container, so that according to the text above and below, everything is in the middle, but it is not in the middle of the container.

The html file in the container is as follows:

<table border="0" cellpadding="0" width="100%" cellspacing="0" id="table1">
 <tr>
  <td width="14" height="46" background="topleft.gif">&nbsp;</td>
  <TD BACKGROUND="topmid.gif" HEIGHT=46 ALIGN=LEFT VALIGN=TOP>
   <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR HEIGHT=6><TD COLSPAN=3></TD></TR>
    <TR><TD VALIGN=TOP>[VISIBILITY]</TD><TD>[ACTIONS]</TD><TD ALIGN=LEFT VALIGN=MIDDLE>  [TITLE]</TD></TR>
   </TABLE>
  </TD>
  <td background="topright.gif" width="14">&nbsp;</td>
 </tr>
 <tr>
  <td width="14" background="left.gif">&nbsp;</td>
  <TD>
   <TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR><TD id="ContentPane" runat="server"></TD></TR>
   </TABLE>
  </TD>

  <td background="right.gif">&nbsp;</td>
 </tr>
 <tr>
  <td width="14" background="bLeft.gif" height="24">&nbsp;</td>
  <td background="bMid.gif">&nbsp;</td>
  <td background="bright.gif">&nbsp;</td>
 </tr>
</table>

 

Is anyone able to suggest a reason why I might be having difficulty? I would be extremely grateful!

Thank you,

Pete

 
New Post
4/26/2006 9:18 AM
 
For the result I think you're expecting, remove the width="100%" from the outside table declaration.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
New Post
4/26/2006 2:07 PM
 

Also, don't forget to review your CSS to make sure it's deprecating correctly, if an ID or Class has the align attribute defined, it could be cascading down and preventing other alignments. Just my $0.02.

 

SB


Wells Doty Jr
Online Content Development
 
New Post
4/27/2006 5:28 AM
 

Thank you for the replies!

I removed the width="100%" value, and now the table adjusts to the size of whatever is contained within it. So, the information within the container is centred. However, the containers are not centred on the actual pages. They are always on the left.

The container doesn't have a css does it? Is this an issue with the skin or the container? I'm assuming it is the container, as I do not have this problem when I try using the default DNN containers with my current skin.

Can anyone one offer any further help?

Pete

 
New Post
4/27/2006 8:39 AM
 
This is an issue with both the container and skin. The skin defines the area a container lives in, but the container defines what width it uses. Usually containers use 100% width, but they don't have to.

Michael Flanakin | Microsoft Consulting Services
www.michaelflanakin.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Nothing can be centredNothing can be centred


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