Radio + Checkbox Alignment

Here you can ask or discuss anything else you want...

Radio + Checkbox Alignment

New postby unowho13 » Tue Mar 25, 2014 12:41 am

This may have to do with Label Text Offset which I have changed, but my radio buttons and check boxes to the left of the labels aren't in line. Can this be fixed?
Image
unowho13
 
Posts: 6
Joined: Tue Mar 25, 2014 12:37 am

Re: Radio + Checkbox Alignment

New postby Simon » Tue Mar 25, 2014 3:47 pm

Hello,

Please give me live url of your website, so I can see the problem.

Regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Radio + Checkbox Alignment

New postby unowho13 » Tue Mar 25, 2014 6:05 pm

http://www.centrence.com/requests/

Confirmed in IE, Firefox and Chrome the same shifting behavior.
unowho13
 
Posts: 6
Joined: Tue Mar 25, 2014 12:37 am

Re: Radio + Checkbox Alignment

New postby Simon » Tue Mar 25, 2014 7:06 pm

You have javascript error on your page, that is why the checkbox/radio does not renfered correctly.

You need to correct the error, and hat should fix the issue.
Code: Select all
Uncaught TypeError: Cannot read property 'msie' of undefined main.js?ver=1.1.1:1466
if($.browser.msie){...//this line causes error!


Regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm

Re: Radio + Checkbox Alignment

New postby unowho13 » Mon Mar 31, 2014 7:50 pm

Hi Simon,

We have been doing some investigating and this is what we have come up with:
- We are using the latest JS library
- The latest jquery library removed the 'Browser Detect' function and this is causing the issue
- We can't use the lower JS version, which is what the error is related to, because it will impact other Wordpress plugins

Can you advise on adding a 'Browser Detect' function back in or updating the plugin to utilize other JS versions?

We found this article: http://stackoverflow.com/questions/1436 ... jquery-1-9

But wanted to get your thoughts before exploring this route.

Thanks.
unowho13
 
Posts: 6
Joined: Tue Mar 25, 2014 12:37 am

Re: Radio + Checkbox Alignment

New postby Simon » Mon Mar 31, 2014 9:45 pm

Hello,

If you do not want to change the jQuery version to older, you can use migrating script. Add it after the jQuery library.
Code: Select all
<script src="http://code.jquery.com/jquery-migrate-1.2.1.js"></script>

For more info, see - https://github.com/jquery/jquery-migrate/#readme

Regards,
Simon
User avatar
Simon
Site Admin
 
Posts: 1306
Joined: Wed Jul 13, 2011 8:53 pm


Return to Open discussion

Who is online

Users browsing this forum: No registered users and 4 guests

cron