473,668 Members | 2,611 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

TextBox Control Font Size

I am using textboxes, buttons labels and drop down lists on a web page, but i
noticed that textboxes and buttons font size doesn't change when i change the
font size in IE ( from IE menu: View>>Text Size>>) though the size is
changing for lables and drop down lists, i am using skin for these controls
but all the skin have the same font settings(font size is set to small) i
tried removing the textbox skin to see if this chnages anything but it
doesn't.
any ideas?
I am using .Net 2 and IE 6
Apr 18 '07 #1
3 12440
Hi Tony

You have to use absolute or relative sizes instead of pixels or points:
<asp:Label runat="server" ID="label1" Text="Tony" Font-Size="Medium"/>
not like this
<asp:Label runat="server" ID="label2" Text="Tony" Font-Size="10pt"/>

Hope this helps
--
Milosz
"Toty Santana" wrote:
I am using textboxes, buttons labels and drop down lists on a web page, but i
noticed that textboxes and buttons font size doesn't change when i change the
font size in IE ( from IE menu: View>>Text Size>>) though the size is
changing for lables and drop down lists, i am using skin for these controls
but all the skin have the same font settings(font size is set to small) i
tried removing the textbox skin to see if this chnages anything but it
doesn't.
any ideas?
I am using .Net 2 and IE 6

Apr 18 '07 #2
I am using relative font sizes for all the controls Font-Size="Small" but still textboxes and buttons doesn't adapt to the font size selection in IE, though labels and drop down lists and even validation controls are working.
Toty
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plwrot e in message news:46******** *************** ***********@mic rosoft.com...
Hi Tony

You have to use absolute or relative sizes instead of pixels or points:
<asp:Label runat="server" ID="label1" Text="Tony" Font-Size="Medium"/>
not like this
<asp:Label runat="server" ID="label2" Text="Tony" Font-Size="10pt"/>

Hope this helps
--
Milosz
"Toty Santana" wrote:
I am using textboxes, buttons labels and drop down lists on a web page, but i
noticed that textboxes and buttons font size doesn't change when i change the
font size in IE ( from IE menu: View>>Text Size>>) though the size is
changing for lables and drop down lists, i am using skin for these controls
but all the skin have the same font settings(font size is set to small) i
tried removing the textbox skin to see if this chnages anything but it
doesn't.
any ideas?
I am using .Net 2 and IE 6

Apr 18 '07 #3
Hi Toty,

You're right, i checked it, IE skips buttons absloute sizes. I didn't know
that.
--
Milosz
"Toty Santana" wrote:
I am using relative font sizes for all the controls Font-Size="Small" but still textboxes and buttons doesn't adapt to the font size selection in IE, though labels and drop down lists and even validation controls are working.
Toty
"Milosz Skalecki [MCAD]" <mi*****@DONTLI KESPAMwp.plwrot e in message news:46******** *************** ***********@mic rosoft.com...
Hi Tony

You have to use absolute or relative sizes instead of pixels or points:
<asp:Label runat="server" ID="label1" Text="Tony" Font-Size="Medium"/>
not like this
<asp:Label runat="server" ID="label2" Text="Tony" Font-Size="10pt"/>

Hope this helps
--
Milosz
"Toty Santana" wrote:
I am using textboxes, buttons labels and drop down lists on a web page, but i
noticed that textboxes and buttons font size doesn't change when i change the
font size in IE ( from IE menu: View>>Text Size>>) though the size is
changing for lables and drop down lists, i am using skin for these controls
but all the skin have the same font settings(font size is set to small) i
tried removing the textbox skin to see if this chnages anything but it
doesn't.
any ideas?
I am using .Net 2 and IE 6
>
>
Apr 18 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

48
8878
by: Nirvana | last post by:
How to make the font size constant in HTML code, so that in a web browser it remains fixed. For e.g in IE if you press CTRL and move mouse wheel front or back the font size changes, cheers
5
27827
by: dixie | last post by:
I want to be able to set the font size and font type for text in a text box on a report using VBA. I wan't to be able to control it from a setting in a table. The problem is that I don't know the syntax for setting either font type or font size for a text box on a report. Does anyone know? Help. Please! dixie
3
6405
by: frasmus44 | last post by:
I have searched this group for ways to create jumbo fonts in my Access forms and reports. Unlike MS Word and MS Excel, Access has a 127 point font limit. (About 1.75" tall) I'm referring to bound controls here, so pasting a bitmap into the form is not a solution. I am using Access 2000 (9.0.4402 SR-1). After playing with some ActiveX controls, I found the Microsoft Forms 2.0 textbox looked promising. I placed the control in a form and...
1
3040
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! Can any one point me in direction of modify a TextBox control. What i want to do is to add a button, like the ComboBox have. with my own bitmap and execute an Event when clicked. I will use this to bring a lookup table when searching for customers.
2
2231
by: fabrice | last post by:
Hi, I have a trouble with my TextBox Control and it's ViewState in my form... The property for it, is FALSE as following : <form id="frmSearchBre4" runat="Server"> <asp:textbox id="myID" TabIndex="1" EnableViewState="false" MaxLength="50" runat="server" TextMode="SingleLine"> </asp:textbox>
2
15031
by: Woody Splawn | last post by:
When placing labels and text boxes on winforms they are coming up by default in a size that is just a little too small. How do I change this so that in the future they will come up with a bigger font size?
18
24953
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin, that IE7 does not seem to offer any way to control the font size of a text input element.
7
14504
by: Ned White | last post by:
Is it possible to insert HTML codes to a textbox control ? I am reading HTML formated string from sql server but if i assign this value to Text property of TextBox, the format tags of HTML seems too... sample string value from database: <P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN style="FONT-SIZE: 11pt; mso-bidi-font-weight: bold"> Sales Contract </SPAN></P> <SPAN style="FONT-SIZE: 11pt; mso-bidi-font-weight: bold">Paragraph...
6
8829
by: Miro | last post by:
Is there a way to / or a mathematical formula to see if a font size is 'too big' for a label. I have a label that is docked to 'fill' a form, and I want to resize that font based on the width and height of the label. So far I have something like this on the Form_Resize event: Label2.Font = New Font(Label2.Font.Name, _ Label2.Size.Height - 100, Label2.Font.Style)
0
8381
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8893
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8586
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8658
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7401
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5681
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2026
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1786
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.