Showing posts with label view. Show all posts
Showing posts with label view. Show all posts

Saturday, March 24, 2012

Text Size

I found an issue while working on my asp.net pages in VB. When you open the browser everything looks fine. If a user clicks view and text size and changes the size to larger all my pages are distorted. The text boxes are merged and you cant read them. Does anyone have a solution for this?How are you creating your web page? The pages should look different, but shoudl still be readable. Can you send a short aspx page that demonstrates the behaviour?

Thanks,

Russell
Sounds like you are using GridLayout as you pageLayout (but I could be wrong). I would suggest putting your information (labels and textboxes) in a table. If this dosen't work let me know and I will take a closer look.

Trey
yes I am using a grid layout
I tried to see if there was a difference with a html label or a web form label but they look the same. It seems when the text size is increased by the user it drops the second word in the textbox on another line. How do you know when to use a html label or a web form label?
here a sample

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>trash</title>
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="Z-INDEX: 103; LEFT: 200px; WIDTH: 128px; POSITION: absolute; TOP: 32px; HEIGHT: 30px" cellSpacing="1" cellPadding="1" width="128" border="1">
<TR>
<TD><asp:label id="Label1" runat="server" Width="95px" Height="22px">web form label</asp:label></TD>
</TR>
</TABLE>
<DIV style="DISPLAY: inline; Z-INDEX: 102; LEFT: 338px; WIDTH: 69px; POSITION: absolute; TOP: 34px; HEIGHT: 25px" ms_positioning="FlowLayout">html
label</DIV>
</form>
</body>
</HTML>
For you table width i would use percents instead of px. I feel it is the best way if you are worried about font size increases. I would also use flowlayout for what you are trying to do. here is an example:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>trash</title>
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body>
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" cellSpacing="1" cellPadding="1" width="50%" align="center" border="1">
<TR>
<TD>
<asp:Label id="Label1" runat="server">Label</asp:Label></TD>
<TD>
<asp:TextBox id="TextBox1" runat="server"></asp:TextBox></TD>
</TR>
</TABLE>
</form>
</body>
</HTML>

if you give me exactly what you are doing i can see if i can get it working for you.
It looks like that will do the trick thanks a lot.

text size setting in VS.Net

As I design my page, I want to make sure it looks good if the Text Size is
set to largest in the I.E browser. How can I set my design view so object
appear that way as I build my page?
Thanks,
T"Tina" <tinamseaburn@.removespamexcite.com> wrote in
news:uSq2pH0LFHA.3708@.TK2MSFTNGP14.phx.gbl:

> As I design my page, I want to make sure it looks good if the Text
> Size is set to largest in the I.E browser.

You do realize that text size is relative... it's not the same on all
computers.

You can attempt to force a standardized size by using CSS.

--
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Hi,
this is not a problem specific to VS.NET but a generic design issue with
HTML; there is no "setting" you can switch on to "make my site look 'good'
even if user has selected 32pt font and HotDog Windows color scheme at
640x480 resolution, even on Firefox and Mac IE 5.1".

this site has some suggestions if you need to support gigantic font sizes
(could be very reasonable depending on your audience):
http://www.useit.com/alertbox/20020819.html

i think the #1 piece of advice if you really need to support big fonts and
unknown resolutions: keep your page layout very very simple. Simple is not
a bad thing- see: Google.
Option 2: allow users to select an alternate style sheet for big/simple text
version of your pages. If a user has selected large font size they probably
did it for a reason... you shouldnt override their preference. more work
for you though.
Option 3: at beginning of project, put this in your specification: "this
site will be designed for use at bla bla bla resolutions and standard font
sizes", and make sure the client signs off on that and understands the
tradeoffs.

HTH,
Premier JiangZemin

"Tina" <tinamseaburn@.removespamexcite.com> wrote in message
news:uSq2pH0LFHA.3708@.TK2MSFTNGP14.phx.gbl...
> As I design my page, I want to make sure it looks good if the Text Size is
> set to largest in the I.E browser. How can I set my design view so object
> appear that way as I build my page?
> Thanks,
> T

text size setting in VS.Net

As I design my page, I want to make sure it looks good if the Text Size is
set to largest in the I.E browser. How can I set my design view so object
appear that way as I build my page?
Thanks,
T"Tina" <tinamseaburn@.removespamexcite.com> wrote in
news:uSq2pH0LFHA.3708@.TK2MSFTNGP14.phx.gbl:

> As I design my page, I want to make sure it looks good if the Text
> Size is set to largest in the I.E browser.
You do realize that text size is relative... it's not the same on all
computers.
You can attempt to force a standardized size by using CSS.
Lucas Tam (REMOVEnntp@.rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
[url]http://members.ebay.com/aboutme/spot18/[/url]
Hi,
this is not a problem specific to VS.NET but a generic design issue with
HTML; there is no "setting" you can switch on to "make my site look 'good'
even if user has selected 32pt font and HotDog Windows color scheme at
640x480 resolution, even on Firefox and Mac IE 5.1".
this site has some suggestions if you need to support gigantic font sizes
(could be very reasonable depending on your audience):
http://www.useit.com/alertbox/20020819.html
i think the #1 piece of advice if you really need to support big fonts and
unknown resolutions: keep your page layout very very simple. Simple is not
a bad thing- see: Google.
Option 2: allow users to select an alternate style sheet for big/simple text
version of your pages. If a user has selected large font size they probably
did it for a reason... you shouldnt override their preference. more work
for you though.
Option 3: at beginning of project, put this in your specification: "this
site will be designed for use at bla bla bla resolutions and standard font
sizes", and make sure the client signs off on that and understands the
tradeoffs.
HTH,
Premier JiangZemin
"Tina" <tinamseaburn@.removespamexcite.com> wrote in message
news:uSq2pH0LFHA.3708@.TK2MSFTNGP14.phx.gbl...
> As I design my page, I want to make sure it looks good if the Text Size is
> set to largest in the I.E browser. How can I set my design view so object
> appear that way as I build my page?
> Thanks,
> T
>