473,788 Members | 3,101 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to make font size static?

19 New Member
Hi, guys.

I'm developing a web application for Sales Department people in my company. I used my 1024X768 resolution and "Medium" IE text size to test my Layout and it worked fine. However, some people in Sales Department use different settings like "800X600", "Larger" IE text size or even "Large font" in Appearance tab in Display Property. Those different settings would mess up my layout. What I want to do is to set font size of labels, buttons and etc (preferrably everything that has text on it, except image) be static. So no matter what kind of font setting user has, the web page would show up in the same way.

Now, I can get part of my page worked. In the following code, the font size in the table remain the same regardless whatever the user's font setting is:

Expand|Select|Wrap|Line Numbers
  1.  
  2. <P>
  3.                 <TABLE id="Table5" style="Z-INDEX: 119; LEFT: 8px; WIDTH: 112px; POSITION: absolute; TOP: 48px; HEIGHT: 516px"
  4.                     cellSpacing="1" cellPadding="1" width="112" border="1" runat="server">
  5.                     <tr>
  6.                         <td>
  7.                             <P><asp:label id="Label49" Width="152px" runat="server" Font-Bold="True">Column Display</asp:label>
  8.                                 <MEDIUM>
  9.                                     <asp:linkbutton id="Linkbutton1" Width="120px" runat="server" ForeColor="DodgerBlue" Font-Bold="True"
  10.                                         BackColor="Transparent">Select All</asp:linkbutton>
  11.                                     <asp:linkbutton id="Linkbutton2" Width="120px" runat="server" ForeColor="DodgerBlue" Font-Bold="True"
  12.                                         BackColor="Transparent">Deselect All</asp:linkbutton>
  13.                                     <asp:linkbutton id="Linkbutton_userSetting" Width="150px" runat="server" ForeColor="DodgerBlue"
  14.                                         Font-Bold="True" BackColor="Transparent">Save user Setting</asp:linkbutton>
  15.                                 </MEDIUM>
  16.                             </P>
  17.                         </td>
  18.                     </tr>
  19.                     <TR>
  20.                         <TD style="WIDTH: 334px; HEIGHT: 7px">
  21.                             <P><asp:checkbox id="CB_Item" runat="server" Text="Item"></asp:checkbox><BR>
  22.                                 <asp:checkbox id="CB_POnum" runat="server" Text="PO#"></asp:checkbox><BR>
  23.                                 <asp:checkbox id="CB_Container" runat="server" Text="Container"></asp:checkbox><BR>
  24.                                 <asp:checkbox id="CB_ETA" runat="server" Text="ETA"></asp:checkbox><BR>
  25.                                 <asp:checkbox id="CB_category" runat="server" Text="Category"></asp:checkbox><BR>
  26.                                 <asp:checkbox id="CB_Brand" runat="server" Text="Brand"></asp:checkbox><BR>
  27.                                 <asp:checkbox id="CB_Supplier" runat="server" Text="Supplier"></asp:checkbox><BR>
  28.                                 <asp:checkbox id="CB_ItemDesc" runat="server" Text="Item Desc."></asp:checkbox><BR>
  29.                                 <asp:checkbox id="CB_Size" runat="server" Text="Size"></asp:checkbox><BR>
  30.                                 <asp:checkbox id="CB_PackSize" Height="22px" runat="server" Text="Pack Size"></asp:checkbox><BR>
  31.                                 <asp:checkbox id="CB_Qty_on_hand" runat="server" Text="Qty On Hand"></asp:checkbox><BR>
  32.                                 <asp:checkbox id="CB_Qty_warehouse" runat="server" Text="Qty On All WH"></asp:checkbox><BR>
  33.                                 <asp:checkbox id="CB_Qty_Order" runat="server" Text="Qty On Order"></asp:checkbox><BR>
  34.                                 <asp:checkbox id="CB_Unit" runat="server" Text="Unit"></asp:checkbox><BR>
  35.                                 <asp:checkbox id="CB_ShipTo" runat="server" Text="Ship To"></asp:checkbox><BR>
  36.                                 <asp:checkbox id="CB_Group" runat="server" Text="Group"></asp:checkbox><BR>
  37.                                 <asp:checkbox id="CB_GroupDesc" runat="server" Text="Group Desc."></asp:checkbox><BR>
  38.                                 <asp:checkbox id="CB_CatDesc" runat="server" Text="Category Desc."></asp:checkbox><BR>
  39.                                 <asp:checkbox id="CB_6wks" runat="server" Text="6 Wks Avg Movement"></asp:checkbox><BR>
  40.                                 <asp:checkbox id="CB_LastReceivedDate" runat="server" Text="Last Received Date"></asp:checkbox><BR>
  41.                                 <asp:checkbox id="CB_lastCost" Visible="False" runat="server" Text="Last Cost" ForeColor="Red"></asp:checkbox><BR>
  42.                                 <asp:checkbox id="CB_avgCost" Visible="False" runat="server" Text="Avg. Cost" ForeColor="Red"></asp:checkbox><BR>
  43.                                 <asp:checkbox id="CB_LastCostUS" Visible="False" runat="server" Text="Last Cost (US$)" ForeColor="Red"></asp:checkbox><BR>
  44.                                 <asp:checkbox id="CB_avgCostUS" Visible="False" runat="server" Text="Avg. Cost (US$)" ForeColor="Red"></asp:checkbox></P>
  45.                         </TD>
  46.                     </TR>
  47.                     <TR>
  48.                     </TR>
  49.                 </TABLE>
  50.             </P>
  51.  
  52.  
Of course, in my style sheet, i have:
Expand|Select|Wrap|Line Numbers
  1.  
  2. P { FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: arial }
  3.  
  4. SMALL    {    
  5.     font-size:    .7em;
  6.     }    
  7.  
  8. MEDIUM    {    
  9.     font-size:    .9em;
  10.     }    
  11.  
  12. BIG    {    
  13.     font-size:    1.17em;
  14.     }    
  15.  
  16.  


However, when i tried to apply same logic to other tables in my page, the style doesn't work. I have no idea what happen out there. Anyone can give me some suggestions?
Jan 25 '07 #1
0 3571

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1820
by: Federico Moschini [328594] | last post by:
I have to make difference between2 data from a table in SQL. The page is made with Frontpage, and it extracts QtaGiaCons and Quantita from table "oclrighe". I have to make Quantita - QtaGiaCons to obtain QtaInev (quantity that I have to ship because I have partially shipped) I wait for your suggestion. Thank you.
2
2479
by: jaydog | last post by:
Hello... I'm new to XSL, and I've written a XSLT file that converts a XML file to HTML format. When viewed in a browser, it appears exactly as I would like. However, if I want to look at the HTML as text, which I do, then I have trouble because the XSLT processor (SAXON) outputs everything as one continuous line. How can I make the HTML output from SAXON readable? Is there a command in the XSLT language that forces line breaks? ...
1
4333
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i want to make first text as Table Heading/menu category. For examle in the given menu i want to make a heading as "Comp. Languages" which won't be a link. 2) The position of this menu is absolute to the page. I want to make it absolute to the Table...
48
8899
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
0
2617
by: Martin Streller | last post by:
Hello, The code below represents a simple ownerdrawn, Listview class in C#. Its purpose is to avoid the flicker of the MS ListView. So I can't fall back to their one. Does anybody know why I cannot change the size of the ListView's font (ListView.Font) from e.g.
4
1851
by: UJ | last post by:
I have a client who wants me to make a web page with a marquee on it. No problem. They want the text to be easily changeable. No problem. They want it so that the text will appear about the same size regardless of the screen resolution. Now that's my problem. In a sense, they want it so that if the screen is 800x600 and the text would be 1" tall, and then they make the screen 1600*1200, they still want the
6
4904
by: scottyman | last post by:
I can't make this script work properly. I've gone as far as I can with it and the rest is out of my ability. I can do some html editing but I'm lost in the Java world. The script at the bottom of the html page controls the form fields that are required. It doesn't function like it's supposed to and I can leave all the fields blank and it still submits the form. Also I can't get it to transfer the file in the upload section. The file name...
7
43938
by: carterweb | last post by:
This is how I do it now. 1. Determine the dimensions of the rectangle. 2. Set a my font size to a fixed maximum size. 3. Apply the font my string and measure the string using the graphics object. 4. If string size is less than the size of the rectangle, we are done.
0
9655
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10363
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...
0
10172
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10110
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
9964
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
8993
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
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4069
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
3
2894
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.