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, ...Is CSS limited with SolpartMenu?Is CSS limited with SolpartMenu?
Previous
 
Next
New Post
4/15/2008 10:07 AM
 

Hi,

I'm using SolpartMenu in horizontal mode and want it to look like I'm using separators between the RootMenuItems like:

Hi | Great | Bye |

I can use the "rightseparator" attribute and enter a space (&nbsp) but the width is quite large. If I can define my own property "rootmenuitemcssclass" and use the CSS attribute "border-right" and set it to a width of my choice that would be great, but I can only use a few different CSS attributes (background etc.) and "border-right" is not one of them. For some reason they aren't rendered in either Firefox or IE.

 
New Post
4/18/2008 7:01 AM
 

The way to solve this was to add the CSS to the class that handles "rootmenuitemcssclass td", by default it sets the CSS to it's parent <TR>. Now everything looks great until the user clicks on one of the ROOT-items. For some reason dnn uses a different CSS on onClick (onButtonDown? ...) with my specified "border-right" and "padding" disabled. After the page has refreshed it looks great once again. How can I disable default CSS rules or set my own on onClick events?  

 
New Post
4/18/2008 9:04 AM
 

I'd really suggest you move away from solpart to either DNNMenu or house menu, or anything else that generates a list rather than a table structure form the menu.
if you look at the source thats generated you'll see why the CSS your trying to apply is not workin.

 

John


John Nicholson
 
New Post
4/25/2008 6:50 AM
 

Hi John,

Thanks for your reply. Yes iv'e found why the CSS was removed when I clicked a link, it seems to have with crossplattform compatibility to do and lack of information.

The problem is in spmenu.js; onMBMD() and onMBMU() tries to apply a border and calls the method applyBorder(). In applyBorder() the CSS rule is changed for Mac compliance, "oCell.className = spm_fixCSSForMac(this.getIntCSSName('spmbar spmitmsel') + ' ' + this.cssMenuItemSel + ' ' + spm_getAttr(oCell, 'saveselcss', ''));"

When using the attribute "RootMenuItemActiveCssClass" it get's written to the DOM model as attribute "css". It's therefore not possible to save the classname in an instance variable in the SolpartMenu JS class(Like the default attributes do, ex. cssMenuItemSel).

The easiest solution to this is to comment out the above Mac compliance row that changes the "className" attribute. A better solution is probably to represent "RootMenuItemActiveCssClass" as something else than the "css" attribute in the DOM model and save that value to an instance variable(Like the defaults). It's then possible to remove all the places that these things can happen and still be crossplatform.

 

I will check the mentioned menus aswell, the SolpartMenu is rather limited and I'm looking for other free alternatives. If anyone know of more great free menus, please post in this thread.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Is CSS limited with SolpartMenu?Is CSS limited with SolpartMenu?


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