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, ...Css help(sub menu direction)Css help(sub menu direction)
Previous
 
Next
New Post
6/2/2009 8:20 AM
 

[url=http://www.freeimagehosting.net/][img]http://www.freeimagehosting.net/uploads/687abac883.gif[/img][/url]

(sorry i didn't understand how to upload images on this site)

http://www.freeimagehosting.net/image.php?687abac883.gif

as above image shows

i want to change the sub menu direction from right to left, could anybody please tell me how?

i want to make this change on menu.css

DotNetNuke_Community_04.09.04_Source\Website\Portals\_default\Skins\MinimalExtropy\css\menu.css

- i want the right border of the sub-menu  be inline with the right border of the main-menu

the original one:  the sub-menu left border inline with the main-menu left border

 

 
New Post
6/3/2009 4:06 AM
 

i just want to change the box direction, not the text ..

 
New Post
6/6/2009 8:36 AM
 

any help?

i think it is very easy for CSS expert

 

 

 
New Post
6/6/2009 11:36 AM
 

This is not as easy as it seems, because the submenu position is handled by the menu componentn not CSS directly.

THe menu calculates the position and then dynmically injects it in the HTML:

<table id="dnn_dnnNAV_ctldnnNAVsub39" class="m m0 mid39" cellspacing="0" cellpadding="0" border="0" style="position: absolute; top: 350px; left: 238px; clip: rect(auto, auto, auto, auto); display: none;">

Not easy to change, you might consider using an unordered list menu component for this (Housmenu snapsis) but you would have to rewrite all the menu.css)

 
New Post
6/6/2009 2:10 PM
 

For changing direction of submenu, you have to change a function "positionMenu" in dnn.controls.dnnmenu.js

positionMenu: function(mNode, menu) {
        var oPCtl = this.getChildControl(mNode.id, 'ctr');
        if (dnn.dom.browser.isType(dnn.dom.browser.Safari, dnn.dom.browser.Opera)) {
            if (oPCtl.tagName == 'TR' && oPCtl.childNodes.length > 0)
                oPCtl = oPCtl.childNodes[oPCtl.childNodes.length - 1];
        }
        var oPDims = new dnn.dom.positioning.dims(oPCtl);
        var oMDims = new dnn.dom.positioning.dims(menu);
        var iScrollLeft = dnn.dom.positioning.bodyScrollLeft();
        var iScrollTop = dnn.dom.positioning.bodyScrollTop()
        var iMaxTop = dnn.dom.positioning.viewPortHeight() + iScrollTop - oPDims.rot;
        var iMaxLeft = dnn.dom.positioning.viewPortWidth() + iScrollLeft - oPDims.rol;
        var iNewTop = oPDims.t;
        var iNewLeft = oPDims.l;
        var iStartTop = oPDims.t;
        var iStartLeft = oPDims.l;
        if (this.isNodeVertical(mNode)) {
            iNewLeft = oPDims.l + oPDims.w;
            iStartTop = iMaxTop;
        }
        else {
            iNewTop = oPDims.t + oPDims.h;
            iStartLeft = iMaxLeft;
        }
        if (iNewTop + oMDims.h >= iMaxTop) {
            if (oPDims.rot + iStartTop - oMDims.h > iScrollTop)
                iNewTop = iStartTop - oMDims.h;
        }
        if (iNewLeft + oMDims.w > iMaxLeft) {
            if (oPDims.rol + iStartLeft - oMDims.w > iScrollLeft)
                iNewLeft = iStartLeft - oMDims.w;
        }
        if (this.suborient == dnn.controls.orient.horizontal && this.isNodeVertical(mNode) == false) {
            var oRDims = new dnn.dom.positioning.dims(this.container);
            iNewLeft = oRDims.l;
        }

 

 


        iNewLeft = iNewLeft - oMDims.w + oPDims.w;

        menu.style.top = iNewTop + 'px';
        menu.style.left = iNewLeft + 'px';


    },

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Css help(sub menu direction)Css help(sub menu direction)


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