Can I change a treeview's text size depending on what my browser's text size is set to?


I'm using a treeview on a .net 2.0 page and all is working fine with it in Internet Explorer.  However if I go to View -->  Text Size --> Largest on my browser's menu, all the text on my page appears huge apart from the text in the treeview which remains the same size as it always was.  Is there a way to fix this so that this text will also increase in size?

Many Thanks.

0
Nidge
7/11/2007 2:44:36 PM
asp.net.navigation-controls 13714 articles. 0 followers. Follow

3 Replies
821 Views

Similar Articles

[PageSpeed] 34

Make sure the font size is not set in the control.  And use css to help moderate your pages look and feel.

HTH,


Joe Johnston
If a picture is worth a 1000 words, a sample application is worth a 1000 blog entries
Remember the Constitution!
Dont forget to mark posts answered and resolved (if they are)
0
khaos
7/11/2007 3:58:35 PM

Use the css to pin your font size so that the user could not change the font view size in the browser.


Johnson
0
Johnson2007
7/12/2007 9:20:39 AM

Hi,

Define font of the treeview in the css:

for example:

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
        <asp:TreeView ID="TreeView1" runat="server" CssClass="tree" DataSourceID="SiteMapDataSource1">
        </asp:TreeView>
Css:  
.tree
{
	font-size:larger
}
 hope it helps.
Amanda Wang
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
0
Amanda
7/13/2007 7:35:17 AM
Reply:

Similar Artilces:

Label control's text doesn't appear to be set (in the page which has a user control )when trying to update the text property in the FormView's ItemUpdated event
Hi There,I have a user control which hosts a formview control, gridview control and a label control. The grid view is usedto show rows in the DB and when clicked to edit each row, a form view opens up in edit mode with that particular row info. So I have nothing in the item template.My first question is..is it mandatory to have smth in the itemtemplate of the form view.I have controls in edititemtemplate and insertitemtemplate.When a particular row is edited, I would like to show a status msg showing that the row has been updated.For this, I use the ItemUpdated event of the formview and try ...

Make text size independent of Browser's text size
How can I make sure that no matter what the user sets the text size in his or her browser, the actual size remains unaltered on a ASP.Net page? Thanks Sunilsun21170 Use absolute text sizes - e.g. size="10pt" or something like that. :)--Brian DesmondWindows Server MVP - Directory Serviceshttp://www.briandesmond.com Thanks. I got it. Sunilsun21170...

Setting Label's text attribute to the page title's text.
Is there a way to programmatically set a label's text attribute to the current page's title attribute? Such as (pseudo code):  private void Page_Load(object sender, System.EventArgs e) { // Put user code to initialize the page here lblPageTitle.Text = PageTitle.Text.Attribute(); }   lblPageTitle.Text = Page.Title();  Mike Banavige~~~~~~~~~~~~Need a site code sample in a different language? Try converting it with: http://converter.telerik.com/ Thank you for the reply, however, Page.Title is not available. Perhaps this is a asp.net 2.0 feature...

how to control a RadioButtonList's Listitem's text show according database's field
Hi my page has a repeater control,in repeater has a RadioButtonList control now i want to let the RadioButtonList has four Listitem,every Listitem's text is a database's field so the listitem can show dynamic according every record how can i work out my problem thanks a lot  hello dearbound your RadioButtonList to database if i m not clear fell free 4 replySatyabrat SinghB.E.(C.Sc.)Web developer Livetek Solution Dont forget to click "Mark as Answer" on the post that helped you. yes.i bound the radiobuttonlist to a dataset but how to display the ...

Help! I cannot access the DataGrid's ItemTemplate's LinkButton's Text Atrribute 's Value!!!!!!!!!!!
I write a datagrid's ItemDataBound method as follows:   private void dgTable_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)  {   if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)   {    if(!isRole("Manager"))    {     LinkButton tmp = (LinkButton)e.Item.FindControl("lbPassed");     if(tmp.Text == "Passed")     {      ((LinkBu...

How can I get out of my Mozilla's browser the Winamp browser and get back the Google's or Mozilla's browser.
Please I have got to my browser ( I don't know how.) the Winamp browser he behave like virus stick in.But he doesn't has uninstalation section so I can't do anything to get him away from Mozilla's file. I'm not happy of Winamp's behave its like advertisement against a customer's will. Please is there any way to get him away from Mozilla?Please send me exact direction I have tried many ways but he is deeply inside the systeme so when I install new Mozilla he is always here ready to pester me. Thank you for an answer. Richard ...

Setting Text size in Internet explorer changes the width of 'TD'.How to fix the width of 'TD'
Hi, I have an aspx screen.If i set the text size as 'Larger' or 'Largest' in internet explorer at runtime.The 'TD' element gets wider and other controls in other rows are not in line with TDs. for ex:My TD has 2003,2004,2005 etc in one row. My next row I have checkboxes for 2003,2004,2005 etc. When I change the text size the TD width is becoming larger and all the controls look add as they dont inline with the rows.Is there any possiblities I can make the TD width to be fixed even I change text size?Or any other workarounds for this?Please help me.Thanks in advance. Try to fix the widt...

How to change the size of toolbar's text !
Hi all, In my app the toolbar and its text is visible,but ,the text size is too small for read .I tried to moidfy the size of text, but I could not.Any help would be appreciated. Kanfu Unfortunately, this cannot be done in PB. -- pbm_hopethishelps, Roy Kiesler [TeamSybase] Sybase Developers Network (SDN) - http:///www.sybase.com/sdn "Kanfu" <jw.chen@188.net> wrote in message news:wtoUNDpg$GA.251@forums.sybase.com... > Hi all, > In my app the toolbar and its text is visible,but ,the text size is too > small for read .I tried to moid...

Can't edit text in the 'Basic text Box' OR 'Rich Text Editor'
have, DNN 3.0.13 installed on Windows server 2003have tried sitting at the server and on a workstationI first tried to edit the text on the home page, the text editor shows up but it is empty/blank, I couldn't put my cursor in the text area and type anything.I have also tried to create a new page and try to edit a text area, same problem.....I have also tried to use the events module and tried to add an event, same problem...PS. preview in not on.Thanks in advance, Peter What browser are you using?Are you using a custom skin?Icthus TechnologiesBuilding Faith on the Internet Im havi...

why i can't change the text size of pager-text in gridview?
i'm using gridview and want to config the pager ,i set the forecolor of pager-text , it's ok , but there'r problems with other properties like  i can't set the text size , text style( bold , underliner, strike out),and can't apply css.the page which contain this gridview is applied CSS , but it's not work for paager-text ( about size).please help!!! Thx Here is an Example of centering the Text ....similiarly you can bold or use other HTMl Tags .... <PagerStyle NextPageText=" Next &lt;/center&gt;" PrevPageText="&lt;center&gt; Prev "></PagerStyle> Prev " Nex...

I'd like to change CrystalReportView control text's to other language
Hi, all I'd like to change CrystalReportViewer control to other language (for example Arabia Language Change zoom to word in other language) Can I do that? How? Sorry, My English language is bad but I like learn The .NET Technology and all my friends are not know the computer how to work:(. Thanks for all. dot Net Love....

superreview granted: [Bug 224546] Change Win 'Regional Settings' -> lose button functions & text : [Attachment 136434] update with smontagu's concerns addressed
David Baron <dbaron@dbaron.org> has granted Jungshik Shin <jshin@mailaps.org>'s request for superreview: Bug 224546: Change Win 'Regional Settings' -> lose button functions & text http://bugzilla.mozilla.org/show_bug.cgi?id=224546 Attachment 136434: update with smontagu's concerns addressed http://bugzilla.mozilla.org/attachment.cgi?id=136434&action=edit ------- Additional Comments from David Baron <dbaron@dbaron.org> >Index: intl/locale/src/windows/nsIWin32LocaleImpl.cpp > struct iso_pair > { > char* iso_code; How ab...

superreview requested: [Bug 224546] Change Win 'Regional Settings' -> lose button functions & text : [Attachment 136434] update with smontagu's concerns addressed
Jungshik Shin <jshin@mailaps.org> has asked Christopher Blizzard <blizzard@mozilla.org> for superreview: Bug 224546: Change Win 'Regional Settings' -> lose button functions & text http://bugzilla.mozilla.org/show_bug.cgi?id=224546 Attachment 136434: update with smontagu's concerns addressed http://bugzilla.mozilla.org/attachment.cgi?id=136434&action=edit ------- Additional Comments from Jungshik Shin <jshin@mailaps.org> asking for r/sr. perhaps not this weekend although i'd not complain if you could review this weekend :-) ...

Can a User Control's Page_Load retrieve a value set in the parent's Page_Load?
I want to use a control to perform a specific task, but I want it to vary based on the page it is on. I was hoping to set a value in the Page_Load event of the Parent, and have that value retrieved by the Page_Load event of the user control. I am not sure what order these events fire in, Can I be certain that the parent event will fire first?...

Web resources about - Can I change a treeview's text size depending on what my browser's text size is set to? - asp.net.navigation-controls

Resources last updated: 12/9/2015 11:34:03 AM