Solved

WordPress css <select> element

Posted on 2015-02-24
9
101 Views
Last Modified: 2015-02-25
In a wordpress site I am using an html <select> element with about 21 options.

It works perfectly in Firefox & Safari.

In Chrome, it has odd behavior the slider on the right does not have a slide element in it. Site visitors cannot see the end of the options list (last 3 elements).

In the Theme css, I see this:

input,select,textarea{ -moz-border-radius: 0px; -webkit-border-radius:0px; border-radius:0px; }

In another case, the -webkit thing caused issues with radio buttons in Chrome. I removed that (at the suggestion of an expert) & the radio buttons worked fine.

You can see what I get by going to rain1.com/new-site/service-agreement/. Enter zip code 43219, it's on the next page. Of course I mean in Chrome.

How can I fix this?

Thanks
0
Comment
Question by:Richard Korts
  • 5
  • 4
9 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
In Chrome, it has odd behavior the slider on the right does not have a slide element in it. Site visitors cannot see the end of the options list (last 3 elements).

Not in my Chrome...

Scrollbar and choices visible.
0
 

Author Comment

by:Richard Korts
Comment Utility
Jason,

Yes, in my Chrome too, it looks like what you saw.

But two different people on different computers experienced the behavior I described. One of them JUST downloaded chrome today, just to test this, so they have the latest version.

I don't know what to do.

Put 22 radio buttons on the page?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Put 22 radio buttons on the page?

Up to you.  I can't fix what I can't see as broken, though.

Can those users replicate it on every page access?
Is caching in play?
Security settings on the local machine blocking access?
Are those users manually zooming the browser magnification?
0
 

Author Comment

by:Richard Korts
Comment Utility
Jason,  

I set up an independent test, whole page just this code:

<!DOCTYPE html>

<html>
<head>
<title>Untitled</title>
</head>
<body>
Test Select<br>
<select name="sel">
<?php
      for ($i = 1; $i < 26; $i++) { ?>
            <option value="<? print $i; ?>"><? print $i; ?></option>
      <? } ?>
</select>      
</body>
</html>

When I FIRST open it in Chrome & click the darker bar on the right, it does nothing.

The 2nd time I click it, it lets me move up & down.

It's hard for me to believe there is an overall issue in Chrome
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

Author Comment

by:Richard Korts
Comment Utility
Jason,

There are some illusions to it here:

http://stackoverflow.com/questions/21166379/html-select-scroll-bar-not-functioning-correctly-in-chrome-32

But I tried the jsfiddle in my Chrome, it worked fine.

Richard
0
 

Author Comment

by:Richard Korts
Comment Utility
Jason,

What's the downside if I remove { -moz-border-radius: 0px; -webkit-border-radius:0px; border-radius:0px; }

from the theme CSS?

Other than the issues you discussed re the radio button.

Thanks
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 500 total points
Comment Utility
That bug is from a year ago, but I wouldn't put it past Google to reintroduce it given how often Chrome updates.

I'm not entirely sure what to tell you here.  20+ radio buttons is kind of an UI disaster but if you are that concerned over this bug, run with it and keep a test version of the page with the select handy to test when Google resolves it.  If you want to keep testing it, it might be worth opening a browserstack account and running that page through all versions of Chrome to see if you can isolate which version(s) are affected.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
What's the downside if I remove { -moz-border-radius: 0px; -webkit-border-radius:0px; border-radius:0px; }

Other stuff may look funny?  I don't think it's a huge issue to kill it, just make sure you retest things before going to production.
0
 

Author Closing Comment

by:Richard Korts
Comment Utility
We decided to try using the size parameter on the <select> element to force display of all 21 options at ALL times; had to rearrange the page a little, not sure the customer will like it but onward & upward.

Richard
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Now that you've installed WordPress 2.9 (http://www.experts-exchange.com/articles/Web_Development/Blogs/WordPress/WordPress-2-9-What-to-Expect-When-Upgrading-to-WordPress-2-9.html?) on your site, you need to install some plugins to get the most out …
WordPress is constantly evolving, and with each evolution appears to get better and better.  One of the big drawbacks prior to version 3 was that there was no way to be able to set up a custom menu from the backend. The Old Way Adding menus is…
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now