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, ...Aligning vertical submenus with SolPartMenuAligning vertical submenus with SolPartMenu
Previous
 
Next
New Post
3/26/2007 10:14 AM
 
I am having the following problem. When using a vertical solpart menu, I haven't been able to figure out how to align the submenu with the root menu. In the example to the right - I would want the submenu to align vertically with the root level menu that's generating it (in this case 'About Us'). How do I get the submenu to be at the same level as the green line in this image (which I added after taking the screenshot)?

Here are my CSS elements for the menu:
/* Menu-Styles */
.ActiveRootTab TD {
background-image: url(images/marble_menu_bkgd.jpg);
background-repeat: repeat-y;
width: 160px;
color: #6D0101;
font-family: verdana;
font-size: 11px;
font-style: normal;
padding-left: 5px;
height: 20px;
background-color: #c3ddfd;
border-top: #FFFFFF 1px solid;
border-bottom: #FFFFFF 1px solid;
border-left: #FFFFFF 1px solid;
border-right: #FFFFFF 1px solid;
}

.RootTab TD{
background-image: url(images/marble_menu_bkgd.jpg);
background-repeat: repeat-y;
background-color: #c3ddfd;
width: 160px;
color: #4d535b;
font-family: verdana;
font-size: 11px;
height:20px;
padding-left: 10px;
border-top: #FFFFFF 0px solid;
border-bottom: #FFFFFF 1px solid;
border-left: #FFFFFF 1px solid;
border-right: #FFFFFF 1px solid;
}

.SelectedRootTab TD{
font-family: verdana;
font-size: 11px;
font-style: normal;
color: #fafafa;
height: 20px;
width: 160px;
border-top: #FFFFFF 0px solid;
border-bottom: #FFFFFF 1px solid;
border-left: #FFFFFF 1px solid;
border-right: #FFFFFF 1px solid;
}

.BreadcrumbRootTab TD{
font-family: verdana;
font-size: 11px;
font-style: normal;
color: #6D0101;
background-color: #c3ddfd;
width: 160px;
border-left: #ffffff 1px solid;
border-right: #ffffff 1px solid;
padding-left: 5px;
}

.MainMenu_MenuContainer {
background-color: transparent;
padding-bottom: 0px;
border-top: #FFFFFF 1px solid;
border-bottom: #FFFFFF 0px solid;
border-left: #FFFFFF 0px solid;
border-right: #FFFFFF 0px solid;
}

.subMenu_MenuContainer {
background-color: #6D0101;
padding-bottom: 0px;
border-top: #FFFFFF 0px solid;
border-bottom: #FFFFFF 0px solid;
border-left: #FFFFFF 0px solid;
border-right: #FFFFFF 0px solid;
}

.MainMenu_MenuBar {
cursor: default;
}

.subMenu_MenuBar {
cursor: default;
height: 16px;
width: 760px;
}

.MainMenu_MenuItem {
background-color: #FFFFFF;
cursor: pointer;
cursor: hand;
color: #666666;
font-family: verdana;
font-size: 11px;
font-style: normal;
height: 20px;
}

.subMenu_MenuItem {
background-color: transparent;
cursor: pointer;
color: #FFFFFF;
font-family: verdana;
font-size: 11px;
font-style: normal;
height: 16px;
}

.MainMenu_MenuItemSel {
background:#c3ddfd;
cursor: default;
color: #87001B;
font-family: verdana;
font-size: 11px;
font-style: normal;
border-top: #6D0101 1px solid;
border-bottom: #6D0101 1px solid;
}

.subMenu_MenuItemSel {
background:#6D0101;
cursor: default;
color: #BBE1EF;
font-family: verdana;
font-size: 11px;
font-style: normal;
border-top: #6D0101 0px solid;
border-bottom: #6D0101 0px solid;
}

.MainMenu_SubMenu {
z-index: 1000;
cursor: default;
background: #6D0101;
filter: none;
border: 1px solid #6D0101;
margin-top: 2px;
padding: 0px;
}

 
New Post
3/26/2007 11:09 AM
 

FaithandValues.com wrote
I am having the following problem. When using a vertical solpart menu, I haven't been able to figure out how to align the submenu with the root menu. In the example to the right - I would want the submenu to align vertically with the root level menu that's generating it (in this case 'About Us'). How do I get the submenu to be at the same level as the green line in this image (which I added after taking the screenshot)?



 

You have

margin-top: 2px;

should not that be margin-top: 0px so it lines up

Salar

 
New Post
3/26/2007 11:21 AM
 
Okay, now I feel dumb.

I stared at that CSS and went over and over it looking for something like that - thinking was a padding issue or something. I guess I'd already been working on too much code and my brain was looking for something more complicated. Always good to have someone look at your code with a fresh pair of eyes.

Thanks for the embarrassingly simple fix. It's all good now.
 
New Post
4/3/2007 5:35 AM
 

FaithandValues.com wrote
I am having the following problem. When using a vertical solpart menu, I haven't been able to figure out how to align the submenu with the root menu. In the example to the right - I would want the submenu to align vertically with the root level menu that's generating it (in this case 'About Us'). How do I get the submenu to be at the same level as the green line in this image (which I added after taking the screenshot)?

Here are my CSS elements for the menu:
/* Menu-Styles */
.ActiveRootTab TD {
background-image: url(images/marble_menu_bkgd.jpg);
background-repeat: repeat-y;
width: 160px;
color: #6D0101;
font-family: verdana;
font-size: 11px;
font-style: normal;
padding-left: 5px;
height: 20px;
background-color: #c3ddfd;
border-top: #FFFFFF 1px solid;
border-bottom: #FFFFFF 1px solid;
border-left: #FFFFFF 1px solid;
border-right: #FFFFFF 1px solid;
}

.RootTab TD{
background-image: url(images/marble_menu_bkgd.jpg);
background-repeat: repeat-y;
background-color: #c3ddfd;
width: 160px;
color: #4d535b;
font-family: verdana;
font-size: 11px;
height:20px;
padding-left: 10px;
border-top: #FFFFFF 0px solid;
border-bottom: #FFFFFF 1px solid;
border-left: #FFFFFF 1px solid;
border-right: #FFFFFF 1px solid;
}

.SelectedRootTab TD{
font-family: verdana;
font-size: 11px;
font-style: normal;
color: #fafafa;
height: 20px;
width: 160px;
border-top: #FFFFFF 0px solid;
border-bottom: #FFFFFF 1px solid;
border-left: #FFFFFF 1px solid;
border-right: #FFFFFF 1px solid;
}

.BreadcrumbRootTab TD{
font-family: verdana;
font-size: 11px;
font-style: normal;
color: #6D0101;
background-color: #c3ddfd;
width: 160px;
border-left: #ffffff 1px solid;
border-right: #ffffff 1px solid;
padding-left: 5px;
}

.MainMenu_MenuContainer {
background-color: transparent;
padding-bottom: 0px;
border-top: #FFFFFF 1px solid;
border-bottom: #FFFFFF 0px solid;
border-left: #FFFFFF 0px solid;
border-right: #FFFFFF 0px solid;
}

.subMenu_MenuContainer {
background-color: #6D0101;
padding-bottom: 0px;
border-top: #FFFFFF 0px solid;
border-bottom: #FFFFFF 0px solid;
border-left: #FFFFFF 0px solid;
border-right: #FFFFFF 0px solid;
}

.MainMenu_MenuBar {
cursor: default;
}

.subMenu_MenuBar {
cursor: default;
height: 16px;
width: 760px;
}

.MainMenu_MenuItem {
background-color: #FFFFFF;
cursor: pointer;
cursor: hand;
color: #666666;
font-family: verdana;
font-size: 11px;
font-style: normal;
height: 20px;
}

.subMenu_MenuItem {
background-color: transparent;
cursor: pointer;
color: #FFFFFF;
font-family: verdana;
font-size: 11px;
font-style: normal;
height: 16px;
}

.MainMenu_MenuItemSel {
background:#c3ddfd;
cursor: default;
color: #87001B;
font-family: verdana;
font-size: 11px;
font-style: normal;
border-top: #6D0101 1px solid;
border-bottom: #6D0101 1px solid;
}

.subMenu_MenuItemSel {
background:#6D0101;
cursor: default;
color: #BBE1EF;
font-family: verdana;
font-size: 11px;
font-style: normal;
border-top: #6D0101 0px solid;
border-bottom: #6D0101 0px solid;
}

.MainMenu_SubMenu {
z-index: 1000;
cursor: default;
background: #6D0101;
filter: none;
border: 1px solid #6D0101;
margin-top: 2px;
padding: 0px;
}

Hi,

I am a dotnetnuke newbie and i just wanted to use the vertical solpartmenu as you have used. Could u plz provide me a documentation on how to do it. Or if possible can u provide me the codes.

Looking forward to your reply.

Thanx.

 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Aligning vertical submenus with SolPartMenuAligning vertical submenus 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