Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
How to increase INPUT Text size?
Old 06-27-2009, 02:04 AM How to increase INPUT Text size?
Skilled Talker

Posts: 64
Name: Ralph Freshour
Trades: 0
I'm trying to increase the overall size of my INPUT Text component but my code below doesn't change the size of it at all. I'm trying to make it larger so it shows up better on a PDA browser.

Thanks

PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<
HTML>
<
HEAD>
<
style type="text/css">
.
title_line {color:bluefont-weight:normalfont-size:450%}
input {
size100px;
}
</
style>
<
TITLE> New Document </TITLE>
</
HEAD>
<
BODY>
<
span class="title_line">Username</span>
<
BR>
<
INPUT TYPE="text" ID="id_username" NAME="frm_username">
</
BODY>
</
HTML
__________________
RalphF
Business Text Messaging Services

Please login or register to view this content. Registration is FREE
rfresh is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-27-2009, 11:00 AM Re: How to increase INPUT Text size?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
So, add the text size styling to the input tag:

input{font-size: 200%;}
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-27-2009, 07:14 PM Re: How to increase INPUT Text size?
Skilled Talker

Posts: 64
Name: Ralph Freshour
Trades: 0
Thank you, that led me in the right direction. While that worked for textbox it didn't work for checkboxes and radio buttons. My test code below all sizes up nicely (textbox and all the fonts) but the checkbox and the round radio buttons are still their original size - how can I increase their size too?

The lines
PHP Code:
.style.height "300%" 
don't work.

PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<
HTML>
<
HEAD>
<
style type="text/css">
.
title_line {color:bluefont-weight:normalfont-size:400%}
input {
font-size300%;
}
document.getElementById("id_rad_100").style.height "300%";
document.getElementById("id_chk_100").style.height "300%";
</
style>
<
TITLE>Test</TITLE>
</
HEAD>
<
BODY>
<
INPUT TYPE="text" ID="id_textbox" NAME="frm_textbox"> <span class="title_line">Textbox</span>
<
BR>
<
INPUT TYPE="checkbox" ID="id_chk_100" NAME="chk_100"> <span class="title_line">Checkbox</span>
<
BR>
<
INPUT TYPE="radio" ID="id_rad_100" NAME="rad_100"> <span class="title_line">Radio 1</span>
<
BR>
<
INPUT TYPE="radio" ID="id_rad_100" NAME="rad_100"> <span class="title_line">Radio 2</span>
</
BODY>
</
HTML
__________________
RalphF
Business Text Messaging Services

Please login or register to view this content. Registration is FREE
rfresh is offline
Reply With Quote
View Public Profile
 
Old 06-28-2009, 12:14 AM Re: How to increase INPUT Text size?
GeekSpecialties's Avatar
Super Talker

Posts: 132
Name: Leonard
Location: Minnesota, USA
Trades: 0
I don't think you can. But you could use label, then when the text is clicked it will activate the checkbox/radio button.

http://www.w3schools.com/tags/tag_label.asp
GeekSpecialties is offline
Reply With Quote
View Public Profile Visit GeekSpecialties's homepage!
 
Old 06-28-2009, 12:37 PM Re: How to increase INPUT Text size?
Skilled Talker

Posts: 64
Name: Ralph Freshour
Trades: 0
Label is not the solution I am seeking. I am trying to find a way to increase the size of a textbox, checkbox and radio button.

I've since found out I can use font-size to increase the textbox component but am still looking for a way to increase the checkbox and radio components.
__________________
RalphF
Business Text Messaging Services

Please login or register to view this content. Registration is FREE
rfresh is offline
Reply With Quote
View Public Profile
 
Old 06-28-2009, 03:51 PM Re: How to increase INPUT Text size?
LadynRed's Avatar
Defies a Status

Posts: 10,016
Location: Tennessee
Trades: 0
You can't. There are some form elements that just cannot be sized that way, you're stuck with the defaults.

http://www.sitepoint.com/article/style-web-forms-css/
http://www.alistapart.com/articles/p...ccessibleforms
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-29-2009, 07:04 PM Re: How to increase INPUT Text size?
Skilled Talker

Posts: 64
Name: Ralph Freshour
Trades: 0
Then that would mean there is an alternative way to make checkboxes look larger - hotmail uses checkboxes next to each email message that you can check and then delete. On my PDA those checkboxes are larger than the default/normal checkboxes. When I compare those checkboxes to my test pda screen checkboxes there is a large difference in their size. They must be using some other kind of 'trick' to pull that off.
__________________
RalphF
Business Text Messaging Services

Please login or register to view this content. Registration is FREE
rfresh is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to How to increase INPUT Text size?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.28675 seconds with 12 queries