using CSS inside custom features

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
7/6/2011 5:31:43 AM
Gravatar
Total Posts 3

using CSS inside custom features

Hi all,

I'm developing my first custom feature for mojoportal, and I have a problem using CSS. I didn't find an answer to my question on the online guides, I guess because it's a very basic question so please sorry if I'm asking a basic question here.

How can I use the CSS tag in order to let my feature changes when the user change the skin of the site?

For example, suppose I add a label on my custom feature then I want the text style changes as defined inside CSS file of mojoportal (I won't to type my own CSS file for now, just using the one of mojoportal):

<asp:Label ID="myLabel" runat="server" CssClass="art-blockcontent-body" Text="Hello World!" />

then I didn't see any change in text style, even if I typed the CssClass="art-blockcontent-body".

Should I add some link to CSS inside my feature?

Any help would be highly appreciated. Thanks!

7/6/2011 8:13:22 AM
Gravatar
Total Posts 3

Re: using CSS inside custom features

Ok I just answer to myself, cause I found the solution :)

I created my feature by my own and did not use the CodeSmith template as suggested inside the guide of mojoportal, so the file MyControl.ascx did not contains this stuff

<portal:OuterWrapperPanel ID="pnlOuterWrap" runat="server">
<mp:CornerRounderTop id="ctop1" runat="server" />
<portal:InnerWrapperPanel ID="pnlInnerWrap" runat="server" CssClass="panelwrapper CeyeclopsCameraSettings">
<portal:ModuleTitleControl EditText="Edit" EditUrl="~/CeyeclopsCameraSettings/CeyeclopsCameraSettingsEdit.aspx" runat="server" id="ModuleTitleControl1" />
<portal:OuterBodyPanel ID="pnlOuterBody" runat="server">
<portal:InnerBodyPanel ID="pnlInnerBody" runat="server" CssClass="modulecontent">

I created the file using the CodeSmith template and now it works fine.

I hope this post can help someone else which encounter the same problem! :)

You must sign in to post in the forums. This thread is closed to new posts.