Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET CSS
I have a treeview in div control. when treeview is shown in different monitors, it is not fixed.In some of them it is completely in div, and in another one half of it comes out.what should I do?
Posted 13-Mar-13 0:51am
Comments
Karthik Harve at 13-Mar-13 6:14am
   
have you applied any css class for div ?
MJ MOUSAVI at 13-Mar-13 6:42am
   
no, I just set the width of div to a fix value. I want to fix treeview in this div so in different monitors, it seems right.
sri senthil kumar at 13-Mar-13 9:14am
   
It might be because of insufficient width provided for div, try overflow, border property for div to identify the issue.
vinodkumarnie at 15-Mar-13 2:09am
   
Can you share your source code..?

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hello MJ,
 
Try adding following css rule to the div, assuming that you attached a class named 'divTv' to the div.
.divTv {
    overflow: hidden;
    width: 200px;
    height: 480px;
}
Change height & width values as per your requirements.
 
Regards,
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 15 Mar 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100