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, ...DNNMenu - Vertical Align Root Menu ItemsDNNMenu - Vertical Align Root Menu Items
Previous
 
Next
New Post
7/12/2008 4:17 PM
 

Does anyone out there have any experience getting the DNNMenu (horizontal) to vertical align middle - in both IE and FF?  I can get it to work fine in IE, but so far, all attempts at getting the alignment to change in FF have proved to only drastically move the menu either the to complete top or bottom of the menu container.  The menu object sits in a wrapper div, which in turn sites in a table cell.  The wrapper div and the table cell have the same width and height.  (Height = 41px)

Here is what I have tried for this menu:

/* This works in IE, but not FireFox */
.main_dnnmenu_rootitem span{
    vertical-align
:middle;
    padding
:0px 0px 0px 5px;
}
.main_dnnmenu_container{
    width
:100%;
    background-color
:transparent;
}
.main_dnnmenu_bar{
    width
:100%;
    cursor
:pointer;
    cursor
:hand;
    height
:16px;
    background-color
:transparent;
    
}
.main_dnnmenu_item td{
    
/*TD if menu option for using tables is on*/
    cursor
:pointer;
    cursor
:hand;
    color
:#ffffff;
    font-style
:normal;
    background-color
:transparent;
    font-family
:Tahoma, Arial, Helvetica;
    font-size
:9pt;
    font-weight
:bold;
    white-space
:nowrap; /*Word wrapping menu item now optional*/
    padding
:1px 3px 3px 1px;
}
.main_dnnmenu_rootitem{
    
/*TD if menu option for using tables is on*/
    cursor
:pointer;
    cursor
:hand;
    color
:#ffffff;
    font-style
:normal;
    background-color
:transparent;
    font-family
:Tahoma, Arial, Helvetica;
    font-size
:9pt;
    font-weight
:bold;
    white-space
:nowrap;/*Word wrapping menu item now optional*/
    padding
:0px 12px 0px 5px;/*explicitly set padding for root menu items*/
}
.main_dnnmenu_itemhover{
    color
:#40430E;
}
.main_dnnmenu_itemhover td{
    color
:#40430E;
}
.main_dnnmenu_icon{
    cursor
:pointer;
    cursor
:hand;
    text-align
:center;
    width
:15px;
    height
:100%;
}
.main_dnnmenu_submenu{
    color
:#ffffff;
    background-color
:#878026;
    z-index
:1000;
    cursor
:pointer;
    cursor
:hand;
    filter
:progid:DXImageTransform.Microsoft.Shadow(color='#696969', Direction=135, Strength=3);
    padding
:1px 1px 1px 1px;/*explicitly set padding for sub-menus */
}
.main_dnnmenu_break{
    height
:1px;
    font-size
:1px;
}

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
7/12/2008 10:05 PM
 

Will,

The nature of the span tag is to display inline. Therefore, by setting padding or margin won't do any good. You need to reset the browser by setting the span tags using in dnnMENU to display block. Then you can start manipulating the padding and margin.

I.e.

.main_dnnmenu_rootitem span {display: block; padding: 5px 10px;}

Hope this helps!


Cuong Dang
Co-founder: Enliven, dnnGallery
LinkedIn | Twitter
I'm the author of DNN and Web Standards Wrox Blox

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNNMenu - Vertical Align Root Menu ItemsDNNMenu - Vertical Align Root Menu Items


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