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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...CSS not being applied in container?CSS not being applied in container?
Previous
 
Next
New Post
7/27/2009 4:43 PM
 

I still haven't figured out why the styles for my container aren't being loaded. I tried everything possible to exist to try and get it to work and it still doesn't. Even stranger is the fact that I made the module title gold and got it to work. Then when I changed it to red, it still was gold and couldn't get it to change until I took the style out. When I rewrote the style by hand and added it again (with a different color), it still was gold. Any ideas what might be going on?

 
New Post
7/27/2009 4:50 PM
 

As Robert recommended I would look at it with firebug. Or the similar developer tools in IE 8. You should also validate your css. I have seen css be partial ignored from IE when there are issues with it.

 
New Post
7/27/2009 5:32 PM
 

Hi. I looked at it in css validator and it is 100% valid. Here is the css code:

 

.ModuleTitle {

font-family : Arial;

font-size : 110%;

font-style : italic;

font-weight : bold;

color : purple;

text-align : center;

}
 

Can somebody run this in their DNN 5.1? I am trying to use it as a container title style. It either partly loads, doesn't load at all or loads but gets ignored putting the style I had there before back in place (after I deleted it)? any other ideas? I put this in a css file that has the same name as the container. Eternity Records.css and Eternity Records.ascx.

 
New Post
7/27/2009 6:13 PM
 

Works for me in 5.1.0 I created a new folder in portals/_default/containers called EternityRecords.

Then I added your css to a new file Eternity Records.css

Here's the ascx (Eternity Records.ascx) file I used since you didn't give me one to look at...

<%@ Control language="vb" codebehind="~/admin/Containers/container.vb" autoeventwireup="false" explicit="True" inherits="DotNetNuke.UI.Containers.Container" %>
<%@ Register tagprefix="dnn" tagname="ACTIONS" src="~/Admin/Containers/actions.ascx" %>
<%@ Register tagprefix="dnn" tagname="TITLE" src="~/Admin/Containers/Title.ascx" %>
<div style="padding-bottom: 6px;">
<dnn:ACTIONS runat="server" id="dnnACTIONS" providername="DNNMenuNavigationProvider" expanddepth="1" populatenodesfromclient="True" />
<dnn:TITLE runat="server" id="dnnTITLE" cssclass="ModuleTitle" />
<div id="ContentPane" runat="server">
</div>
</div>
 

I also tried changing the color to green after I viewed it and it turned green.

Can you test the above ascx and verify this works for you?

 
New Post
7/27/2009 6:22 PM
 

Looking back at your css I see the text-align so I assume your not applying this directly to the <dnn:Title> tag but are wrapping it? If that's the case try this...

.ModuleTitle .Head { font-family: Arial; font-size: 110%; font-style: italic; font-weight: bold; color: Green; }

HTH's,

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...CSS not being applied in container?CSS not being applied in container?


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