Re: Fit web controls in one line

From: Peter (czupet_at_wsinc.com)
Date: 02/10/04


Date: Tue, 10 Feb 2004 07:33:30 -0600

Thanks for your help, that solved my problem!

I have another question!

If my web page is more than one screen, how can I make it scroll with out
scrolling up the top or the left side of the table?

""Jeffrey Tan[MSFT]"" <v-jetan@online.microsoft.com> wrote in message
news:D%23PzhA47DHA.2992@cpmsftngxa07.phx.gbl...
>
> Hi Peter,
>
> Thank you for posting in the community!
>
> Based on my understanding, you write a web form which arrange your
controls
> in 2 rows, while being displayed in <table>, each row is wrapped, so all
> the controls are displayed in 4 or even more rows
>
> ===============================================
> Based on my experience, this is the default behavior of Html code in IE
> browser. The row wraps because the IE browser window can not display the
> whole row.
>
> I think you want the controls not to wrap. Just display as in design-time.
>
> To workaround this issue, you can inclue all your controls in a <table>,
> and hide the table's border. Like this:
> <TABLE cellpadding="0" cellspacing="0" border="0">
> <TR>
> <TD style="WIDTH: 249px">Last Name:<asp:textbox id="txtFirstName"
> runat="server" Width="145px"></asp:textbox></TD>
> <TD style="WIDTH: 261px">FirstName:
> <asp:textbox id="Textbox2" runat="server"></asp:textbox></TD>
> <TD style="WIDTH: 254px">
> Last Update:
> <asp:textbox id="Textbox3" runat="server" Width="134px"
> Enabled="False"></asp:textbox></TD>
> </TR>
> <TR>
> <TD style="WIDTH: 249px"><FONT size="3">
> <DIV style="DISPLAY: inline; WIDTH: 46px; HEIGHT: 19px"
> ms_positioning="FlowLayout">Phone:</DIV>
> <asp:textbox id="Textbox4" runat="server"
> Width="145px"></asp:textbox></FONT></TD>
> <TD style="WIDTH: 261px">
> <DIV style="DISPLAY: inline; WIDTH: 38px; HEIGHT: 19px"
> ms_positioning="FlowLayout">Email:</DIV>
> <asp:textbox id="Textbox5" runat="server" Width="198px"></asp:textbox>
> </FONT>
> </TD>
> <TD style="WIDTH: 254px">
> <DIV style="DISPLAY: inline; WIDTH: 70px; HEIGHT: 15px"
> ms_positioning="FlowLayout">Department:</DIV>
> <asp:textbox id="Textbox6" runat="server"
> Width="136px"></asp:textbox></FONT></TD>
> </TR>
> </TABLE>
>
> In the html code, I use cellpadding="0" cellspacing="0" border="0" to make
> the table's border do not display.
>
> I also have added the alternated project in the attachment, please refer
to
> it.
>
> ======================================================
> Please apply my suggestion above and let me know if it helps resolve your
> problem.
>
> Thank you for your patience and cooperation. If you have any questions or
> concerns, please feel free to post it in the group. I am standing by to be
> of assistance.
> Have a nice day!!
>
> Best regards,
> Jeffrey Tan
> Microsoft Online Partner Support
> Get Secure! - www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.



Relevant Pages

  • Simple Question...Please Help...
    ... is to load an image on to an asp.net page, on a fixed size of the page so ... All I am able to do presently is to display the image, ... so that I can scroll through the rest of the image. ... me enough space on the page to put the rest of the controls. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [MDI] add a control to a client window
    ... not it makes sense to "scroll" the controls or leave them fixed in place. ... have to add entries to your Message Map "by hand" to call the handlers for the controls. ... >> display in the view. ...
    (microsoft.public.vc.mfc)
  • Re: Scroll right to left
    ... you code code it all up manually using an unbound ... Have 3 columns of controls (in order to ... display 3 records at a time.) ... When user clicks "scroll right", ...
    (microsoft.public.access.forms)
  • Re: Control appearance problem
    ... > I'm resizing form and all its controls at design time. ... While all of them display data with no problem, ... method if the form's font matches the control font. ... borders, add 2-4 pixels per side (30 ...
    (microsoft.public.vb.general.discussion)
  • Re: CScrollView constructor
    ... which has two display modes: one which is a full-window display of a graph, ... controls which must always be present, and one of which is a dual display (in fact, it is ... dialogs on the right. ... >change dialogs is actually easier and faster than attempting to scroll a screen to find ...
    (microsoft.public.vc.mfc)