Design and CSS styles
Version 6.x > Design and CSS styles > Treeview border style View modes: 
User avatar
Member
Member
maassenbas-hotmail - 1/20/2012 5:51:42 AM
   
Treeview border style
Hi,

I'm using a CMSTreeView. Now i want to style my CMSTreeView and have a border around every element. Every element should have the same width (100%). In my CSS i used:

.TreeViewClass table
{
border-bottom: 1px solid black;
width: 100%;
border-width: 1px;
}

But I can't see the border. In my Developers Tool of the browser I saw that the border-width is set in the element.style.

element.style {
border-width: 0;
}

When i deactivate this in the developers tool, it works perfect. Is there a way to set this border-width from the element.style in CSS or JavaScript?

Thanks in advance!

Bas

User avatar
Kentico Support
Kentico Support
kentico_janh - 1/23/2012 1:45:50 AM
   
RE:Treeview border style
Hello,

Could you please try to set a higher priority to your border definition by adding an !important property to your style:
border-bottom: 1px solid black !important;

Best regards,
Jan Hermann

User avatar
Member
Member
maassenbas-hotmail - 1/26/2012 3:17:08 PM
   
RE:Treeview border style
Yes, that's works!

Thank you very much!

Best regards,
Bas Maassen