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, ...IE - Centering skin with "Margin: 0 auto" not workingIE - Centering skin with "Margin: 0 auto" not working
Previous
 
Next
New Post
2/24/2009 5:14 PM
 

Hello.  I'm working on a skin and am excited that its been working great in Firefox and Google chrome.  The issue I'm having is that for some reason IE is the only browser not centering my divs.  When I test it as a regular HTML page it works perfect, but when I uploaded it as a skin package, its goes left. I used the following css which worked to center my divs in all but IE.  Any help will be greatley appreciated:

*
{    
margin: 0 auto;
padding: 0;
}

Using version 4.9.0 on a Godaddy windows hosting.  

 
New Post
3/3/2009 2:00 PM
 

Can it have something to do with the DOCTYPE

Make an xml file in the same directory as you skin and name it: <skinname>.doctype.xml

In the xml file write the DOCTYPE ex.

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

 

 
New Post
3/4/2009 2:08 PM
 

Most likely the problem.

Doctype.  You can find a doctype example in the minimal extropy skin.

Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
4/14/2009 7:03 PM
 

Very Odd. I am using 4.9.3 and the skin example that came with it. Everything matches with just some minor changes to the colors and such but my skin is still left justified. I cannot see where the skin justification would be over-ridden or even set. Can someone shed some light as to what may cause a skin to do this?

Or show me the path where the alignment is actually set (if anywhere?)

 

Thanks,

Ron

 

 

 
New Post
4/15/2009 1:56 AM
 

First check that your output is in XHTML as suggested above.  You should see .

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
If you do not have the doctype set, IE will not center your page.  To center your page you will have 
margin:0px auto; set in CSS on the container.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...IE - Centering skin with "Margin: 0 auto" not workingIE - Centering skin with "Margin: 0 auto" not working


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