473,386 Members | 1,752 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,386 software developers and data experts.

Drop-Down List Justification?

VS.NET 2002/VB

Is there any way to right justify the items in a drop-down list?

I have a list of fractions -- in 1/8 and 1/16 -- and they look kind of funky being left justified,
especially since the 16's get wider and wider as you go down the list.

I've tried padding the 1/8s with spaces to move them over a little, but spaces don't seem to hold in
a list.

Thanks,
George
Nov 18 '05 #1
2 2954
Hi, George,

For simple cases like list of numbers you can set the css property
"direction" to "rtl" (right to left). A side effect is that the dropdown
button goes to the left end of the control which may surprise or even
frighten users. Anyway, try experimenting with it.

<asp:dropdownlist id="dropDownList1" runat="server"
style="direction:rtl;"/>

If there is enough space in the page and the items are not that many I'd
rather use RadioButtonList with RepeatLayout table, RepeatDirection vertical
and TextAlign right.

Greetings
Martin
"George" <------@----.---> wrote in message
news:gf*********************@bgtnsc04-news.ops.worldnet.att.net...
VS.NET 2002/VB

Is there any way to right justify the items in a drop-down list?

I have a list of fractions -- in 1/8 and 1/16 -- and they look kind of funky being left justified, especially since the 16's get wider and wider as you go down the list.

I've tried padding the 1/8s with spaces to move them over a little, but spaces don't seem to hold in a list.

Thanks,
George

Nov 18 '05 #2
Martin,

I really didn't think there was any way to do it, so I'll play around with your suggestion a little.

Thanks,
George

"Martin Dechev" <de*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi, George,

For simple cases like list of numbers you can set the css property
"direction" to "rtl" (right to left). A side effect is that the dropdown
button goes to the left end of the control which may surprise or even
frighten users. Anyway, try experimenting with it.

<asp:dropdownlist id="dropDownList1" runat="server"
style="direction:rtl;"/>

If there is enough space in the page and the items are not that many I'd
rather use RadioButtonList with RepeatLayout table, RepeatDirection vertical
and TextAlign right.

Greetings
Martin
"George" <------@----.---> wrote in message
news:gf*********************@bgtnsc04-news.ops.worldnet.att.net...
VS.NET 2002/VB

Is there any way to right justify the items in a drop-down list?

I have a list of fractions -- in 1/8 and 1/16 -- and they look kind of

funky being left justified,
especially since the 16's get wider and wider as you go down the list.

I've tried padding the 1/8s with spaces to move them over a little, but

spaces don't seem to hold in
a list.

Thanks,
George


Nov 18 '05 #3

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

Similar topics

10
by: BuddhaBuddy | last post by:
Platform is DB2/NT 7.2.9 The table was created like this: CREATE TABLE MYTEST ( MYTESTOID bigint not null primary key, FK_OTHEROID bigint not null references other, FK_ANOTHEROID bigint not...
0
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
15
by: uwcssa | last post by:
I try to drop a table as: I got: During SQL processing it returned: SQL0478N The object type "TABLE" cannot be dropped because there is an object "sch.SQL070515104729271", of type "FUNCTION",...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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.