javascript - how to add Select Box arrow in left side - Stack Overflow

I unable to add the arrow in select box i am using simply css codeand finding otherscript but una

I unable to add the arrow in select box i am using simply css code and finding other script but unable to add the arrow in select box left side

Any help from any one greatly appreciated.

I unable to add the arrow in select box i am using simply css code and finding other script but unable to add the arrow in select box left side

Any help from any one greatly appreciated.

Share Improve this question asked Nov 4, 2014 at 6:32 Raman jaswalRaman jaswal 972 silver badges9 bronze badges 0
Add a ment  | 

3 Answers 3

Reset to default 5

Use the direction property in css of your select box. The direction property specifies the text direction/writing direction.

select { direction: rtl; }

It has a default value of ltr so change it to rtl. It will move your arrow to left.

To only move the arrow in the left side I have used only css:

select{
  direction: rtl;
}
select option{
  direction:ltr;
}

In this way the option still remain in ltr text.

I remend to go with Uniform JS. This will be quite simple to integrate with websites. You will get full flexibility to change the select box.

URL: http://uniformjs./

Only thing you need to do is, you need to change the background image as you wish. http://uniformjs./images/sprite-aristo.png

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1743876364a4522371.html

相关推荐

  • javascript - how to add Select Box arrow in left side - Stack Overflow

    I unable to add the arrow in select box i am using simply css codeand finding otherscript but una

    9天前
    30

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信