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 problwm with IECSS problwm with IE
Previous
 
Next
New Post
9/21/2008 4:27 PM
 

I need some help.

I cant center my Wrap div of my whole page. In all browsers is ok, but in IE i cant do it.

I use the code:

.wrap
{
width: 700px;
margin: auto;
border: solid 1pt #000;
}

 

 

I think that the rule margin: auto; is not working for IE, but i cant understand why....

 
New Post
9/21/2008 7:03 PM
 

It's just a bug. You can put another div around the outside and use that to center it, or turn the centered div into a single-celled table for the skin and simply align=center the table, or put the central div into a single celled table that surrounds everything and use the cell alignment to keep it in the middle. The advantage of this last method is that you can also center it vertically if needed. One hassle with the centered div-only layout is that your action menus are going to end up being off-set and you'll need to convert your containers to use dropdown actions instead. The table is the most reliable method. It's all a bit of a pain really, but it can be done.

Rob

 

 
New Post
9/22/2008 4:39 PM
 

Hi Rob. Thanks for the answer.

First, i tryed the CSS method with another wrap <div>....but unfortunaly...it doesnt work. Itryed out the table method, but i am a pure CSS fan.

So, if you can tell me the CSS method, i will appreciate it....I want to see the DIV centered in IE :)

 
New Post
9/22/2008 11:04 PM
 

You should use:

body
{
   text-align
:center;
}


#wrappter
{
   width
:720px;
   margin
: 0 auto;
   text-align
: left;
}

 
New Post
9/23/2008 4:07 AM
 

Can you provide a link?

Thanks.


www.nukedesigners.com W3C compliant Valid skins for dotnetnuke.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...CSS problwm with IECSS problwm with IE


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