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, ...Sub menu items are making a gapSub menu items are making a gap
Previous
 
Next
New Post
2/3/2013 10:10 PM
 
i have coded a skin for dotnetnuke and used below codes in css style sheets to style my menu but i see a horizontal gap long as nomber of items in my sub menu for example if there is a menu with 5 sub menu (height=43px;) the gap is 43*5px just in IE.developer tools shows the exact problem. i have tried giving an invisible border, overflow, and most of the things that i googled. this gap will disappear when i delete the main menu div tag.

 

/*-------------    Mandetory       ------------*/
#SecMenu {height: 43px;background: url('Images/bg_main_menu.jpg') repeat-x;display: block;}
#inner {width:1000px;margin:0 auto;text-align:center;}
/* Main Menu Items Are Here First Level Menu */
#main_menu{padding:2px; float:right; background:url(Images/line_main_menu.jpg) no-repeat right 12px;width:1135px;}
#main_menu ul{float: right;margin: 0;padding: 0px 0px 0px 0px;list-style: none;line-height: normal;}
#main_menu li{height:43px; padding-left:2px;  float:right; background:url(Images/line_main_menu.jpg) no-repeat 0px 12px; z-index:100;}
#main_menu a{line-height:43px; padding:0px 23px; display:block; font-family:'PT Sans', Arial, Helvetica, sans-serif; font-size:13px; color:#ffffff; font-weight:bold; text-shadow:0px -1px rgba(0, 0, 0, 0.14); text-transform:uppercase;}
#main_menu a:hover {background: url(Images/bg_main_menu_hover.jpg) repeat-x !important;text-decoration: none;margin-right: -1px;margin-top: -2px;padding-left: 24px;background-color: #A6A6A6 !important;}
#main_menu .current a {margin-right: -2px;margin-left: -2px;margin-top: -2px;padding-right: 25px;padding-left: 25px;padding-top: 2px;background: url(Images/bg_main_menu_current.jpg) repeat-x;z-index: 100;background-color: #F24328;}
/* Sub Menu Items Are Here Second Level Menu */
#main_menu ul.menu ul {width: 130px;float: none;padding: 2px 2px 0px 2px;margin: 0;list-style: none;line-height: normal;line-height: 43px;display: block;margin: 0px 4px 0px 4px;color: #000;background-image: none;z-index: 100;}
#main_menu li.level1 li {width: 130px;float: none;padding: 2px 2px 0px 2px;margin: 0;list-style: none;line-height: normal;line-height: 43px;display: block;list-style: none;margin: 0px;padding: 0px;z-index: 100;background-color: #fdfdfd;border-left: 1px solid #f3f3f3;border-right: 1px solid #f3f3f3;border-top: 1px solid #ffffff;border-bottom: 1px solid #f3f3f3;color: #000;background-image: none;}
#main_menu li.level1 li a {width: 130px;float: none;padding: 15px 2px 0px 2px;margin: 0;list-style: none;line-height: normal;line-height: 43px;display: block;list-style: none;margin: 0px;-moz-transition: all 0.1s ease;-ms-transition: all 0.1s ease;-o-transition: all 0.1s ease;-webkit-transition: all 0.1s ease;transition: all 0.1s ease;font-size: 11px;color: #6b6b6b;text-transform: none;line-height: 1em;background-image: none;text-decoration: none;}
#main_menu li.level1 li a:hover {background-color: #fdfdfd !important;background-image: none!important;color:#F24328!important;padding: 15px 2px 0px 2px!important;z-index: 100;}


 

 
New Post
2/4/2013 1:51 PM
 
Have you tried using a tool like FireBug to inspect the CSS being applied to the various elements in the menu?

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Sub menu items are making a gapSub menu items are making a gap


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