473,387 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Label Alignment

Hi i want to ask how to make the label text align to the
right instead to the left
thax
Nov 19 '05 #1
3 1251
Hi

Just try the code

put the below code in <head></head> section
<style>
.labelright{text-align:right;}
</style>
add the cssclass property

<asp:Label id="Label1" runat="server" CssClass="labelright"></asp:Lable>

regards
charmis

"Joko" <an*******@discussions.microsoft.com> wrote in message
news:52****************************@phx.gbl...
Hi i want to ask how to make the label text align to the
right instead to the left
thax

Nov 19 '05 #2
Thax man it works
Nov 19 '05 #3
Not really a perfect solution, however if you are going to use
Microsoft's asp:Label and wish to be cross browser compatible this
should work.

<asp:Label Runat="Server" Id="lblBleah" style="float:left; width:150px;
text-align:right; border:1px solid red;">hello</asp:Label>

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: TR | last post by:
Is it possible with CSS to prevent this wrapping alignment with a checkbox with a nested label? This is the label of the checkbox that wraps beneath it I'd prefer it looked like...
2
by: Cybertof | last post by:
Hello, Have you seen that if you try to right align multiple labels with different content, the labels are not aligned correctly ? Is it normal ? Cybertof.
3
by: JIM.H. | last post by:
Hello, I put a label in my asp.net page but I could arrange alignment. I need to set alignment to middle. How can I do that? Thanks, Jim.
4
by: Stuart Norris | last post by:
Dear Readers, I am attempting to draw box around some text using unicode on multiline label. The label is forty characters wide and 12 lines deep. I have been trying to draw a box around text...
2
by: David | last post by:
Hello. I have a Label control on my web form and I have long text in it. What I want is to disable text wrapping of this Label. Is it possible? Also I want to know how can I set text...
2
by: André Hänsel | last post by:
Hi again, I have a radio button: <p> <input id="v_yes" type="radio" name="v" value="yes" /> <label for="v_yes">Ja</label> <input id="v_no" type="radio" name="v" value="no" /> <label...
0
by: VorTechS | last post by:
I'm having a problem with an inherited label, applying text rotation to aligned text. If text rotation is applied to the aligned text, the alignment goes 'nuts'. I can find no logic to what is...
2
by: swapna_munukoti | last post by:
Hi all, I am new to asp.net. So, may be my question may be simple. But I am feeling hard to achieve this. I need to create a web custom label control, for which I have to assign new property...
2
by: theinvisibleGhost | last post by:
Is there any easy way of centering a label in a form or panel? I can dock, and anchor but not get my label to stay centered, short of resorting to playing with the top and left properties of the...
2
by: gabsaga | last post by:
The following code creates a chart in Powerpoint with data from an Access query. Question I have is how to set the font and alignment of the data points on my X-axis. I want my alignment to be 90...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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...

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.