| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() | is there anyway to make the checkbox wider and taller Is there any way you can make the checkbox wider and taller. so it will be easy to click. it is getting harder to click after beeing on the computer so long. thanks |
| |
| | #4 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | <input type="Checkbox" style="height:50px;width:50px;"> big enough for ya? you may also want to look into using the label tag, so that you can click the text next to the checkbox. <label for="mycheckbox">Click this text to tick the box!</label> <input type="Checkbox" name="mycheckbox" id="mycheckbox" style="height:50px;width:50px;">
__________________ NameCooler.com |
| |
| | THREAD STARTER #5 (permalink) | ||||
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() | Waww. thank you very much. it is perfect. Instead of the text can we put image? i tried this on my php code for image but did not work PHP Code:
| ||||
| |
| | #6 (permalink) | ||||
| NamePros Regular Join Date: Jun 2004 Location: Iowa City
Posts: 705
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Try removing the label tags
__________________ formally ninedogger ------ Want to talk to a stranger? -->| Click Here | TalkToAStranger.com | <-- Meet New Friends | ||||
| |
| | THREAD STARTER #7 (permalink) | ||||
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=400548 <label for="mycheckbox">Click this text to tick the box!</label> <input type="Checkbox" name="mycheckbox" id="mycheckbox" style="height:50px;width:50px;"> this works perfect. But i want to click to an image instead of the text to activate the check box. | ||||
| |
| | #8 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | you can put a background image on the label: Code: <label for="mycheckbox" style="width:276px;height:110px;background-image:url('http://www.google.com/intl/en_ALL/images/logo.gif');display:block;float:left;"></label>
<input type="Checkbox" name="mycheckbox" id="mycheckbox" style="height:50px;width:50px;">
__________________ NameCooler.com |
| |
| | THREAD STARTER #9 (permalink) | ||||
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() |
ok. sorted. thank you very much PHP Code: | ||||
| |
| | THREAD STARTER #10 (permalink) | ||||
| NamePros Member Join Date: Jan 2007
Posts: 98
![]() |
Say width:276px;height:110px for the original image. Can you resize it to width:100px;height:100px | ||||
| |
| | #11 (permalink) |
| Traveller Join Date: Mar 2007 Location: Yet another city
Posts: 1,419
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | it's best to resize the image to the actual size you want it displayed.
__________________ NameCooler.com |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |