Cannot control the width of the label control

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi There,

I am trying to get some fields to align on a web page, like this,

To:
From:
Subject:

Each of the fields above have a corresponding asp:Textbox control next
to it that I cannot get to lign up. I have this code,

<asp:Label Runat="server" Width="100px" ID="Label6">To: </
asp:Label>
<asp:TextBox ID="Textbox1" Runat="server" Width="200px" />
<asp:Label Runat="server" ID="Label7" ForeColor=red Width="5px">*</
asp:Label>

So that means I have tried to tell it that I want the asp:label
control to be 100 pixels wide, but it seems to shrink the label width
to fit the text.

Please help.

.



Relevant Pages

  • Re: Text Fit
    ... Could be a textbox or label or combo. ... I may use several font sizes that fit within the height of the control. ... It really depends on what text you have, unless you're using a fixed width font. ...
    (microsoft.public.vb.general.discussion)
  • Re: SpyBot S&D written in Delphi
    ... > I don't think much of his QC report. ... > 2) Add page control ... Align is not a set, so how can I do that? ... akTop, akRight] and is just as wide as the tab sheet, and then start, the ...
    (borland.public.delphi.non-technical)
  • Re: Read about the Designer Guide Lines
    ... > This is one of the features that don't seem that useful (at ... > least for aligning) to me. ... > control and clicking align is often fiddly in comparison. ...
    (borland.public.delphi.non-technical)
  • Re: multiple subform images per main search form record
    ... Or you could put the image control on the main form -- still showing ... TO HIGHLIGHT THE CURRENT RECORD IN A CONTINUOUS FORM ... CUSTOMIZING YOUR FORM/REPORT DESIGN TOOLBAR ... Align Right -- must have>1 control selected to be enabled ...
    (microsoft.public.access.formscoding)
  • Page Control getting Clipped.
    ... the Align is set to AlClient. ... when being run on a winXP machine part of the page control ... anchors default, it doesn't. ...
    (alt.comp.lang.borland-delphi)