Hello All:
Is it possible to align text (left, center, right) in a label, literal or
literalcontrol? I haven't seen any examples and can't seem to work this one
out (which means that it is probably straightforward ;)). I know I could use
a CSSClass, but am wondering if there is something here that I have missed.
TIA,
--
Joe 2 3334
“The Literal control is similar to the Label control, except the Literal
control does not allow you to apply a style to the displayed text. You can
programmaticall y control the text displayed in the control by setting the
Text property.” http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
To align text in a label use cssClass (where the style attribute text-align
is set to left, right, center, etc..). You would typically use the literal
control if you need a placeholder (for the ASP.NET engine to use for
rendering other controls) for controls to be added programmaticall y, in which
case you can set their style individually.
--
HTH,
Phillip Williams http://www.societopia.net http://www.webswapp.com
"Joe" wrote: Hello All:
Is it possible to align text (left, center, right) in a label, literal or literalcontrol? I haven't seen any examples and can't seem to work this one out (which means that it is probably straightforward ;)). I know I could use a CSSClass, but am wondering if there is something here that I have missed.
TIA, -- Joe
Thanks Phillip.
--
Joe
"Phillip Williams" wrote: “The Literal control is similar to the Label control, except the Literal control does not allow you to apply a style to the displayed text. You can programmaticall y control the text displayed in the control by setting the Text property.” http://msdn2.microsoft.com/en-us/lib...US,VS.80).aspx
To align text in a label use cssClass (where the style attribute text-align is set to left, right, center, etc..). You would typically use the literal control if you need a placeholder (for the ASP.NET engine to use for rendering other controls) for controls to be added programmaticall y, in which case you can set their style individually.
-- HTH, Phillip Williams http://www.societopia.net http://www.webswapp.com
"Joe" wrote:
Hello All:
Is it possible to align text (left, center, right) in a label, literal or literalcontrol? I haven't seen any examples and can't seem to work this one out (which means that it is probably straightforward ;)). I know I could use a CSSClass, but am wondering if there is something here that I have missed.
TIA, -- Joe This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Steven Bethard |
last post by:
I have a string with a bunch of whitespace in it, and a series of chunks
of that string whose indices I need to find. However, the chunks have
been whitespace-normalized, so that multiple spaces and newlines have
been converted to single spaces as if by ' '.join(chunk.split()). Some
example data to clarify my problem:
py> text = """\...
|
by: Graham Cross |
last post by:
Dear All
Is there an HTML way of aligning the images on this page
http://www.ageconcernleics.com/review03/chairs03.html
so that they appear evenly spaced relative to the text column on the
left.
In a perfect world I would like the top of the first photo to be
aligned with the first line of text.
Thanks
|
by: Dave |
last post by:
Hello all,
I need to know if you can vertically align Items within an
ItemTemplate. For example I have two columns, one column
has a stack of 6 textboxes, my second column can have 1 to
n number of textboxes, but when there is only one textbox
I need to be able to anchor it to the top of the column,
at present it centers itself in the...
|
by: Linux Boy via .NET 247 |
last post by:
(Type your message here)
Hi everyone,
I would like to ask a question about aligning text within one label.
I have an application that everytime the user click on Enter Record button, they will be prompt an input box to enter employee names and sales figures.
The output then will be displyed in only 1 label using a For loop. The layout...
|
by: Steven Bethard |
last post by:
I've got a list of word substrings (the "tokens") which I need to align
to a string of text (the "sentence"). The sentence is basically the
concatenation of the token list, with spaces sometimes inserted beetween
tokens. I need to determine the start and end offsets of each token in
the sentence. For example::
py> tokens =
py> text =...
| |
by: tomasio |
last post by:
Dear NG-readers,
I want to align text right to an image. The last line of text should
align with the bottom edge of the image. Unfortunately, the results
using my poor CSS knowledge mounted in text which starts at the bottom
line of the image and continues below. For an example go here:
http://tomasio.at/temp/test_valign.html
I want to...
|
by: Steven Bethard |
last post by:
I have some plain text data and some SGML markup for that text that I
need to align. (The SGML doesn't maintain the original whitespace, so I
have to do some alignment; I can't just calculate the indices directly.)
For example, some of my text looks like:
TNF binding induces release of AIP1 (DAB2IP) from TNFR1, resulting in
cytoplasmic...
|
by: Steven Bethard |
last post by:
I'm trying to align an XML file with the original text file from which
it was created. Unfortunately, the XML version of the file has added and
removed some of the whitespace. For example::
... Pacific First Financial Corp. said shareholders approved its
... acquisition.
... '''
... <EVENT eid="e1" class="REPORTING" said...
|
by: agbee1 |
last post by:
Hello:
I've finally made the effort to ween myself from overly using tables and use CSS for my positioning. However, I am having a problem with my navigational menu properly aligning in Firefox, despite the fact that I have gotten a green light from W3.
link to problem page:
I didn't see a feature to attach my css code so I pasted...
|
by: unstoppablekatia |
last post by:
I have a website that has images on it, and underneath the images are text. My only option of aligning the images and text separate from each other, is to do <div align="right">, <center>, or <div align="left">. Neither of them help with what I want to do, and nor does <display:inline> or <float:right>, even adding them to the image links does no...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
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. ...
|
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...
|
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...
|
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 projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |