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, ...Center the logo for MinimalExtropyCenter the logo for MinimalExtropy
Previous
 
Next
New Post
1/28/2009 1:04 AM
 

I have spent quite a bit of time playing around and have not been able to get this to work.  I am such a noob with css...

I am sure this is really simple to do with css.

What would be the proper overriding css that I should use?

From what I can tell the element is:

<div class="logo_top">

Thanks in advance

 
New Post
1/28/2009 10:34 AM
 

I left out some detail...

This would be the 4.9.1 Version of DNN with the stock skin.

Thanks!

 
New Post
1/28/2009 12:28 PM
 

it should be as simple as adding the following to your css (portal.css) - this will center the content within the div

.logo_top
{
align: center;
}

if you want to centre the div within the page, you have to supply a page width and then get the div to handle the margins automatically i.e.

.logo_top {
  width: 700px ;
  margin-left: auto ;
  margin-right: auto ;
}

if you're not doing a fixed width, you can use percentages

 .logo_top {
  width: 100% ;
  margin-left: auto ;
  margin-right: auto ;
}


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/28/2009 12:34 PM
 

Adding a side-note...

If you prefer to change the skin only a single portal, you can add the same CSS to the portal settings instead of altering the default CSS file (which will alter the skin for all portals).

Under DNN 4.x, go to:  ADMIN->SITE SETTINGS->STYLESHEET EDITOR

Add the CSS to the bottom of whatever CSS contents are already there.

 

-mamlin


esmamlin atxgeek.me
 
New Post
1/28/2009 3:20 PM
 

Do NOT change the default skin, but make a copy of it and change that skin or else your skin changes will be overwritten if you update DNN

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Center the logo for MinimalExtropyCenter the logo for MinimalExtropy


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