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, ...How to make a 1px separation between Items in the SolPartMenuHow to make a 1px separation between Items in the SolPartMenu
Previous
 
Next
New Post
11/16/2006 5:39 PM
 
Hi!

I have a really wierd problem which I'm hoping someone can help me understand what's wrong.

My SolPartMenu doesn't seem to react to either the CSS class border ("border: 1px solid yellow;") or margin ("margin-right: 1px")

What I'm trying todo is to create a 1px space between the different menu items/links. I'm solved the border issue using a small "hack" skinning the TD instead with .MainMenu_MenuItem td { border: 1px; }

Any ideas to where to look for this "bug"? Why isn't my SolPartMenu listening to my border and margin CSS commands.


Info:
4.x.x DNN installation
Using the dnnMENU .ascx tag
All SolPartMenu CSS have been placed within the Portal.css file /0/Portal.css

Thank you in advance

regards
- Johan
 
New Post
11/17/2006 1:15 PM
 
The topic should be "How do I..." as a question. :)

Does anyone now? I've seen sites with separation between solpartmenu items ... just wierd why it doesn't work.
 
New Post
11/18/2006 7:10 AM
 

Johan,

When you look at the solpart menu in detail you will see that the classes are located at the TR level. This is what a single menu item in one of my own skins looks like (using the FF extension "view source chart"):

<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tbody>
<tr id="tddnn_dnnMENU_ctldnnMENU327" onmouseover="m_oSolpartMenu['dnn_dnnMENU_ctldnnMENU'].onMBMO(this);"
         onmouseout="m_oSolpartMenu['dnn_dnnMENU_ctldnnMENU'].onMBMOUT(this);"
         onclick="m_oSolpartMenu['dnn_dnnMENU_ctldnnMENU'].onMBC(this, event);"
         onmousedown="m_oSolpartMenu['dnn_dnnMENU_ctldnnMENU'].onMBMD(this);"
         onmouseup="m_oSolpartMenu['dnn_dnnMENU_ctldnnMENU'].onMBMU(this);"
         class="dnn_dnnmenu_ctldnnmenu_spmbar dnn_dnnmenu_ctldnnmenu_spmitm g0menubar g0menuitem g0rootmenuitem"
         savecss="g0rootmenuitem" saveselcss="g0rootmenuitemsel"
         menuclick="document.location.href='http://yourdomain.nl/yourpagename/tabid/327/Default.aspx';" style="">
         <td unselectable="on" title="" align="left" nowrap="NOWRAP"><img src="/images/spacer.gif">YourPageName</td>
</tr></tbody></table>
 
As you easily can, if you use your "hack" (which btw is quite OK), the style definition takes precedence over others, hence it applies.
 
Personally, I do not know an other way to easily apply a top or bottom border. Another option is to simulate a border with a background image.
 
Peter

Peter Schotman
Cestus Websites voor DotNetNuke oplossingen in Nederland
Contact us for your custom design and skinning work.
 
New Post
11/18/2006 11:27 AM
 
Hi esset

Have you look already at this post
Perhaps this will help.

Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
11/19/2006 7:33 AM
 
Hi guys!

Thanks for you replies, but I solved it like this.

First I had to add .MainMenu_MenuItem td classes for all the menu classes in order not to have the top "td" class definition of MenuItem apply to the below ones. So the setup became like 6 standard CSS classes for the menu, then 6 new ones with TD definitions. Hehe.

For separation I just used the separator="&nbsp;&nbsp;" on the dnnMENU ASCX controller.

Best way I could solve it. I would rather have used margin: 5px; but it didn't apply either on TD or CSS class level.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to make a 1px separation between Items in the SolPartMenuHow to make a 1px separation between Items in the 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