PDA

View Full Version : Remove the text underline from link tree node



ragecf
24 Dec 2012, 12:12 AM
Hi,

I have a link tree node, I want to remove the under line and change the font size.

Tree node JSON:



[{id:'tree',text:'test',expanded:true,children:[
{text:'1',href:'www.sencha.com',leaf:true,cls:'test-node'},
{text:'2',href:'www.sencha.com',leaf:true},
{text:'3',href:'www.sencha.com',leaf:true}
]}]";


CSS:


.test-node {
font-size: 15px !important; //this works
text-decoration: none !important; //this doesn't work
}


How to remove the href underline from tree node? Thanks.

slemmon
24 Dec 2012, 1:06 PM
What about if you add a class to the tree component and then in the CSS do something like:



.myTree a
{
text-decoration: none;
}?


http://jsfiddle.net/slemmon/kwkG5/

ragecf
24 Dec 2012, 10:11 PM
O~~~~ It works now. Thanks.

ragecf
30 Dec 2012, 10:45 PM
sorry, should be




.myTree a { text-decoration: none !important; }?