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, ...Simple CENTERING Problem for "container div"Simple CENTERING Problem for "container div"
Previous
 
Next
New Post
8/11/2009 6:30 PM
 

Greetings all.

Using version 4.9.

 I'm about 90% to introducing a tableless CSS skin to my dev site. Having an issue. I use a container div to hold my header, content, footer, panes, etc. I set the CSS for this container div as such:

#siteContain {
 margin: 0 auto;
 padding: 0;
 height: auto;
 width: 950px;
 background-color:#FF9;
}

... Even giving it a background color for testing purposes.

This CSS works in both Firefox and IE when I test the XHTML and CSS. However, when I upload the SKIN, DNN is pushing my containment div and all within its borders over to the left - failing to honor the "margin: 0 auto;" statement.

Does this need to be set separately in the XML or, is there some simple trick I'm missing.

Please advise!

1000 thanks for putting up with a newbie like me!

 

 

 
New Post
8/12/2009 5:26 AM
 

You need an extra XML document to set the doctype to XHTML, check the minmal extropy skin for an example.

ths file should be named: "skinname".doctype.xml

And contain:

<SkinDocType>
    <![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</SkinDocType>
 

That's all

 
New Post
8/12/2009 12:06 PM
 

Timo,

1000 thanks!

Curious also. I believe you're the one who penned the "skin objects" PDF. I'm trying to wrap my head around the whole skin objects concept right now. Do you have an example skin package some place that shows how to use skin objects in the HTML and also shows them lined out in the XML document?

Please advise!

Regards,
Victor Soares

 
New Post
8/12/2009 7:28 PM
 

Did you read the skinning documentation (the "old" one)? It's in the documentation package on the download page.

It explains it all, some things can be doen differently in DNN 5 (read the top post of this forum for that)

IMO the best example is the minimal extropy skin that comes with DNN 4.9 and 5..

The 4.9 version uses [TOKENS], the DNN5 version <object> tags, which is easier but will not work in DNN 4

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Simple CENTERING Problem for "container div"Simple CENTERING Problem for "container div"


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