Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

Tip/Trick CSS with DNN 4.8.2

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

AuthorMessages
Declic Video
Posts:57



05/11/2008 9:10 AM  

Hello John and all readers,

I am sure that you can help me, with a little silly tip ! I have recently migrated my dnn portal to 4.8.2
And now, lot of my multi-lingual text/html module (apollo) have text CENTERed instead of aligned to left...
(and I do not know why of course)

It is certainly linked to a CSS somewhere, but I can not find where ! I have tried with the FireFox Webdevelopper addon... I do not find !
If I disable ALL css, the problem is still the same... So I think I could add in the css the property align="left" somewhere... But where please ????

Try to have a look here:
http://declic-video-fx.com/language/en-US/Pinnacle-Studio.aspx#498
(it is a simple text between

tag)
THANKS... (I have searched for 2 days now, I give up)
DV FX

chocolate
Posts:51



05/16/2008 4:47 AM  

Hi DV,

Do you mean the "What is the non linear video editing software Pinnacle Studio ?" module?

It seems that your Content Pane is hardcoded to align center. If your problem is that, you should check your skin's ascx.

If that's not the case, then please point out the center text you're mentioning.

Duc


Pijaja.Com - Innovative Site Builder
Declic Video
Posts:57



05/17/2008 12:24 AM  
Hello Chocolate,

Yes, exactly: "What is the non linear video editing software Pinnacle Studio ?" module.
But I never changed my skin or content pane alignement. Anyway, I would like to check, would you please help me, because I admit that I am very BAD with skin and css (I am lost, there is too many css file). I suppose that I have to check:
1- my skin (interior.ascx file), right ?
2- and my container (linecolorH3.ascx), right ?

1/
For the first one, I have a line:
{td height="100%" id="ContentPane" class="contentpane" runat="server" valign="top"}
(I think that the class contentpane is not important because if we disable all css with firefox, it is still centered)

2/
For the second one, I have a line:
{td id="ContentPane" runat="server" align="center" style="padding-left: 5px; padding-right: 5px; padding-top: 5px; padding-bottom: 5px;"}
This one seems to use "align = center". So it seems that the problem is there. I will try to remove it and see the result.

Nevertheless, how is it possible that I did not have the problem in the past with DNN 4.5.5 and I have it now with DNN 4.8.2 ?
I assume that I had a CSS with DNN 4.5.5 which was overriding this value, is it possible ? And during the upgrade, my CSS has been erased. I am right ???

DV FX
Declic Video
Posts:57



05/17/2008 12:38 AM  

Chocolate, you are right !
If I put align="left" in my linecolorH3.ascx I obtain the desired result.

Nevertheless, I have a huge number of container, and I can not modify all of them (I never modified them). So, what should I change in my skin to restablish the align=left property as it was with DNN 4.5.5  ???

I have tried to add in skin.css the property:

.Contentpane{

    text-align : center

}

It does not work. I also tried in portal.css to change .normal to text-align:center without success neither...
:-(
Where is my mistake ?

DV FX

robax
Posts:16



05/17/2008 3:26 AM  
the containers are aligned suing the alignment option in the module settings. First try setting that to left for teh module and then update - even if it is already left, do it again.

That should change the DNNAligndefault class to DNNAlignleft for the container.

You'll find these recently added classes in default.css - They aren't meant to changed in the css - DNN will change the class for the container based on the module setting.

/* used to set the different module align options - from module settings */
.DNNAlignleft
{
text-align: left;
}
.DNNAlignright
{
text-align: right;
}
.DNNAligncenter
{
text-align: center;
}


Rob
Declic Video
Posts:57



05/17/2008 3:29 PM  

Hey Robax !! Thanks a lot for helping me !!

Alignement was already on left. I have tried to set the alignement (of the module - in settings) to center, and then again to left. Still the same. No modification.

I have checked my portal.css:
/* used to set the different module align options - from module settings */
.DNNAlignleft
{
    text-align: left;
}
.DNNAlignright
{
    text-align: right;
}
.DNNAligncenter
{
    text-align: center;
}

I have restarted my DNN application, modified web.config (to force refresh), clear cache settings
==> Still centered...
But I have seen in the HTML Code, that I have the following:

<td id="dnn_ctr498_ContentPane" align="center" style="padding-left: 5px; padding-right: 5px;
padding-top: 5px; padding-bottom: 5px;"
class="DNNAligndefault">

And this is coming, as stated by chocolate, from the container.ascx file.... So, I have align=center and then class = DNNAligndefault. Why default ??? It should be LEFT, isn't it. Why isn't it taken into account ???

Any other idea ??? I do not really want to modify all my container, it took time. That's incredible, I do not see what could have changed between V4.5.5 and V4.8.2

DV FX
PS: In the mean time, I had the idea to add a style .DNNAligndefault
{
    text-align: left;
}
But that's not so nice...

chocolate
Posts:51



05/17/2008 6:21 PM  

DV,

I guess the reason for this quirk is that there's no DNNAlignDefault in the previous versions. So all of the modules were set to align left to default.

Now there are some solutions I can think of:

  • Editing .DNNAlignDefault seems like the best option.
  • When editing your text, wrap it inside a [div align="left"][/div]
  • Use a batch file edit software to modify the Content Pane default alignment

Hope this helps,

Duc


Pijaja.Com - Innovative Site Builder
Declic Video
Posts:57



05/18/2008 1:13 PM  

Hello Chocolate,

Thanks a lot for answering. I am not sure that I have understood.
You say that there were no DNNAlignDefault in the past. Ok. But now, I am with DNN 4.8.2, so why is it not changing to DNNAlignCenter or Left when I change the parameter in the module setting ????
It should change to DNNAlignCenter when I ask a center alignment, or DNNAlignLeft when I ask a left alignment... Isn't it ??? So, why this behavior ?

Now, the second solution is not really acceptable (too much time)

The third one, I did not understand. Which content pane should I modify ? In the ascx file ??? Yes, why not...

DV FX

chocolate
Posts:51



05/19/2008 9:35 AM  

DV,

I really don't know why Alignment in Module Settings doesn't work as it used to be. So I can't say what is causing that behavior.

I meant that you could use a batch editing software that finds a specific string, like <-- id="ContentPane" align="center" --> and changes it to <-- id="ContentPane" -->. Since containers in a pack are often constructed the same way, it wouldn't take much time.

However, I still think that setting DNNAlignDefault is the optimal solution.

Regards,

Duc


Pijaja.Com - Innovative Site Builder
Declic Video
Posts:57



05/25/2008 2:05 PM  
Ok chocolate, thanks a lot for your help, I followed your advice and I have changed the DNNAlignDefault setting...
;-)

DV FX
Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Forums >DotNetNuke Support >Tips-And-Tricks > Tip/Trick CSS with DNN 4.8.2



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.2 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information