You need to Register for free and Login to post a message in the forum.

Forum

Subject: Custom CSS for the Text/HTML Module?
Prev Next
You are not authorized to post a reply.

Author Messages
digitaldoom
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:5

04 Aug 2008 4:49 PM  
Is there a way I can add a custom CSS class to the Text/HTML Module?

I have a few formatting changes I would like to make, but only to the Text/HTML Module.

I did find some places in CSS to change stuff, but it changed the content of every module.

... Help
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2371


04 Aug 2008 9:57 PM  
The easiest way (at least the way that I like to do it) is by wrapping the specific module with a div tag. You can do this in the module's header and footer.

Header: < div id="myID" >
Footer: < /div >

Then, you can add styles for myID in skin.css. You can also stick them in the header, ahead of the div tags using style tags.

Joe Craig
DNN Creative Support
Subscribe to the website
digitaldoom
DNN Creative Magazine Subscriber
Nuke Newbie
Nuke Newbie
Posts:5

05 Aug 2008 1:07 PM  
Posted By jncraig on 04 Aug 2008 9:57 PM
The easiest way (at least the way that I like to do it) is by wrapping the specific module with a div tag. You can do this in the module's header and footer.

Header: < div id="myID" >
Footer: < /div >

Then, you can add styles for myID in skin.css. You can also stick them in the header, ahead of the div tags using style tags.

this is a great solution, thanks!
You are not authorized to post a reply.
Forums > DotNetNuke® > Modules > Custom CSS for the Text/HTML Module?



ActiveForums 3.7

Latest Forum Posts

RE: [Server Error]This error can be caused by a virtual directory not being configured as an application in IIS. by mnaoj
Error 1 It is an error to use a section registered as allowDefinition='MachineToApplication' beyond ...
RE: skin/container error load by islandman
Hi There newbie for most of the technical stuff. directories etc... I am using skins from ALLDNNS...
search redirect to another portal by sanju_k1421
In my site i got two protals  greek// english    when i click search of english  its redirected to g...
can search work to search in current paonlyge by sanju_k1421
hi  In my site i m using Input Search  module  when i click on search  it search the whole site  and...
Error - The ScriptManager must appear before any controls that need it by SimonTurner
Hi Guys,Ive been having the below problem for a few days now and am really in need of some expert ad...
Restricting DateEditControl till date by coder247
Hi All,   We are using the DateEditControl (for obvious reasons!!) in our application. But we want t...
RE: Email Set UP per Portal by jncraig
I think that the answer depends on how email is configured at your host. You'll probably have to co...
RE: skin/container error load by jncraig
I would suggest checking permissions for directories. Does this occur only when you upload a skin...
RE: Add New Profile Properties by jncraig
Hmmm ... I don't have an answer. Does anyone else?
RE: No Access for me too by ristori
it is ok now. Thanks for this action.
skin/container error load by islandman
Has anyone else run across this error when loading skins or containers from site settings?I am using...
Email Set UP per Portal by islandman
How do I set up a unique email address per domain name off 1 hosting environment. for example...m...
RE: localhost Install issues by cdees
Lee: I wanted to follow up on this for anyone following this thread. I have been unable to solve t...
RE: Add New Profile Properties by WSI
HI Joe, The DNN version is 4.5.5. Thanks, Cliff
Change Skin on URL by vinita
Hi,Can the skin be changed based on the url used to access a portal. Multiple portal aliases may be ...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
problem creating child portal by kabamaro
  Hello all i have 4 Aliases for my parent portal , lets call them X,y,Z,WIn all Aliases i can creat...
Best DNN portal ever! by derpir
I have been a subscriber since august 2008, and DNNCreative.com is simply the best DNN Portal, their...
RE: skinning trouble by derpir
Hello Yes could you be so kind and take a look att the htm-file and css-file.I would be very gratef...
Search function is not working by kishorpawar
I am using Seach module in my project but not working, i have set   host setting alsoHost --> Schedu...
DotNetNuke Modules
RSS Feeds