Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

SelectList styling

  • 12-01-2011 2:25pm
    #1
    Registered Users, Registered Users 2 Posts: 40


    Hello,
    is this possible to style HTML SelctList using CSS like the attached sample.attachment.php?attachmentid=142997&stc=1&d=1294842109

    Thanks for your time


Comments

  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    JQuery is the way to go I think - check out these examples:
    http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.html


  • Posts: 0 [Deleted User]


    Eoin wrote: »
    JQuery is the way to go I think - check out these examples:
    http://jquery-ui.googlecode.com/svn/branches/labs/selectmenu/index.html

    +1
    And I wouldn't worry too much about the small group of folks who block javascript on their browsers. jQuery is so ubiquitous now that anyone who chooses to disable javascript will expect the internet to look a little shabbier, and some websites to not work at all.


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


    +1
    And I wouldn't worry too much about the small group of folks who block javascript on their browsers. jQuery is so ubiquitous now that anyone who chooses to disable javascript will expect the internet to look a little shabbier, and some websites to not work at all.

    It's not just users who have JavaScript turned off who won't be able to use it, low vision/blind users who use screen readers probably won't 'see' it either, for the sake of a bit of styling you're excluding about 5% (rough estimate of the size of those two groups) of your potential market. That's not a criticism just a consideration - if accessibility isn't a concern ignore it.

    They do support <label> and tabbing though which is pretty cool.


  • Registered Users, Registered Users 2 Posts: 21,263 ✭✭✭✭Eoin


    This is just styling a standard HTML element; it's not replacing it - so I would expect that a screen reader or browser with scripting turned off would just render the dropdown list as normal.


  • Registered Users, Registered Users 2 Posts: 1,802 ✭✭✭cormee


    Eoin wrote: »
    This is just styling a standard HTML element; it's not replacing it - so I would expect that a screen reader or browser with scripting turned off would just render the dropdown list as normal.


    Indeed it is. I only looked at the code briefly using Firebug, apologies, ignore my earlier post.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 40 team eGlobe


    Thanks guys for the direction.JQuery is the way to go


Advertisement