Current location: Hot Scripts Forums » General Web Coding » HTML/XHTML/XML » how to align text inside <select> <option>


how to align text inside <select> <option>

Reply
  #1 (permalink)  
Old 08-04-04, 09:43 AM
jasongr jasongr is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
how to align text inside <select> <option>

Hello

I have an application that could be either in RTL or in LTR.
This is set in dir attribute of the <html> tag

I would like to display the text: "People [15]" inside an <option> tag.
A problem occurs when the page is viewd in "RTL" mode.
Then the text in the <option> tag reads: "[People 15]"

This obviously wrong
Here is a code segment that shows what I mean:
Code:
<html dir="rtl">
 <body>
  <select>
   <option>People [15]</option>
  </select>
 </body>
</html>
I have noticed that providing the 'direction' style attibute to the <option> tag has no effect. I also tried dir="ltr" inside the tag, but still no effect.

I noticed that this attribute has an effect on the entire <select> tag, but that causes the text to the left aligned, even though it should be right aligned (remember? <html dir="rtl">)

setting the align attribute to the option tag has no effect too

help would be appreciated
Jason
Reply With Quote
  #2 (permalink)  
Old 08-05-04, 11:43 PM
JasonMichael's Avatar
JasonMichael JasonMichael is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Helloooo Jason,

Try this: Use the HTML Ascii symbol for the backets instead:

Here they are:

[ is &#91

and

] is &#93

I don't have infused knowledge of these. I looked for the answer on Google.com and found this website:

http://www.ascii.cl/htmlcodes.htm

Enjoy!
__________________
www.JMRTechnet.com - PHP Tutorials and More!
Reply With Quote
  #3 (permalink)  
Old 08-08-04, 03:42 AM
jasongr jasongr is offline
Newbie Coder
 
Join Date: Jul 2004
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
thanks, I will give it a shot
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink a tablecell , not the text inside it aspnoobie ASP.NET 2 04-02-04 09:37 AM
MySQL Query problem Wraith PHP 5 03-06-04 05:16 PM
picking random entries with a filter... Double selection problem dsumpter PHP 7 11-16-03 07:19 PM
Placing Flash or Graphics INSIDE text using CSS and Style Filters and DHTML 000 CSS 1 09-03-03 01:43 PM
displaying all duplicate records in my table. dsumpter PHP 6 09-02-03 10:54 AM


All times are GMT -5. The time now is 10:14 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.