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, ...Treeviewmenu skinning problem in non IE browsersTreeviewmenu skinning problem in non IE browsers
Previous
 
Next
New Post
1/29/2008 10:42 AM
 

Hello,

I'm using a treeviewmenu on my website.

This is the code i'm using:

From aspx-file

<dnn:TREEVIEW runat="server" id="dnnTREEVIEW" CssClass="TreeViewMenu" level="root" nowrap="true" treeIndentWidth="5" IncludeHeader="False" NodeChildCssClass="TreeViewNode" NodeCssClass="TreeViewNode" NodeOverCssClass="TreeViewNodeOver" NodeSelectedCssClass="TreeViewNodeSelected" NodeClosedImage="" NodeLeafImage="/dnn/Portals/0/Skins/CLB-skin/spacer.gif" NodeOpenImage=""/>

From stylesheet

.TreeViewMenu {
 width: 175px;
}
.TreeViewNode{
 width: 125px;
 height: 20px;
 padding: 5px;
 background-image: url(menu.jpg);
 text-align: left;
 font-family: Tahoma, Arial, Helvetica;
 font-size: 10px;
 font-weight: bold;
 color: #C8C8C8;
 background-repeat: no-repeat;
}
.TreeViewNodeOver{
 width: 125px;
 height: 20px;
 padding: 5px;
 background-image: url(menu_in.jpg);
 text-align: left;
 font-family: Tahoma, Arial, Helvetica;
 font-size: 10px;
 font-weight: bold;
 color: #00A4C8;
 background-repeat: no-repeat;
}
.TreeViewNodeSelected{
 width: 125px;
 height: 20px;
 padding: 5px;
 background-image: url(menu.jpg);
 text-align: justify;
 font-family: Tahoma, Arial, Helvetica;
 font-size: 10px;
 font-weight: bold;
 color: #FFFFFF;
 background-repeat: no-repeat;
}

IE displays the control like it should (screenshot at http://www.go-clb.be/temp/2.gif )

When I open my website with a Mozilla-based browser like Firefox or Opera; the browser ignores the given width and height of the different nodes (screenshot at http://www.go-clb.be/temp/1.gif ).

Is their a way to solve this problem? Do I have to use different css code for these browers? 

All sugestions are welkom!

Greetz,

Bruno Devos

 
New Post
1/29/2008 11:12 AM
 

Not sure if it will help, but try adding "min-width" tags set to the same amount as your "width" tags?

 
New Post
1/29/2008 11:37 AM
 

mm dont know of this will work because i never use any of the default dnn navigation again there are mch better ones that style better was well but try adding

display:block; to all te node elments to see if that wil cause the overlapping to go away, I dont know wat exactly the html code is that th treeview generates bu if its span code for the node elements than this cold be the issue (  span elemens are inline so they dont take any space and you can have multiple spans on one line  as opposed to divs and other block elemens ( ofcourse with divs you can oerride this but default behavior san is inline di is block

I have seen othere code in dnn portals tha were build out of spans as well you can give a span element height, but f you dont turn it into a bloc element it wont be handled correctly

 

 
New Post
1/30/2008 5:58 AM
 

armand datema wrote

mm dont know of this will work because i never use any of the default dnn navigation again there are mch better ones that style better was well but try adding

display:block; to all te node elments to see if that wil cause the overlapping to go away, I dont know wat exactly the html code is that th treeview generates bu if its span code for the node elements than this cold be the issue (  span elemens are inline so they dont take any space and you can have multiple spans on one line  as opposed to divs and other block elemens ( ofcourse with divs you can oerride this but default behavior san is inline di is block

I have seen othere code in dnn portals tha were build out of spans as well you can give a span element height, but f you dont turn it into a bloc element it wont be handled correctly

The span element  is indeed the problem.

If I turn it into a bloc element, the rest of the treeviewmenu doesn't look how it supposed to be.

Can anybody tell me where I can find other dnnnavigation that style better?

Bruno

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Treeviewmenu skinning problem in non IE browsersTreeviewmenu skinning problem in non IE browsers


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