473,503 Members | 1,805 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 3562

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

Similar topics

0
1801
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 -...
2
2457
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...
1
4299
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...
48
8837
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
2603
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...
4
1832
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...
6
4841
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...
7
43840
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...
0
7199
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,...
0
7074
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...
0
7273
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,...
0
7322
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...
0
7451
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...
0
5572
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,...
0
4667
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...
0
3161
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...
0
374
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...

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.