/    Sign up×
Community /Pin to ProfileBookmark

controlling text box sizes – all browsers

the text area box is 1/3 larger in FF than in IE and Opera
is there any way to have more control over these variances

to post a comment
CSS

3 Comments(s)

Copy linkTweet thisAlerts:
@FangFeb 02.2007 — <style type="text/css">
textarea {
font:medium/1.4 Verdana, Geneva, Arial, Helvetica, sans-serif;
width:20em;
height:10em;
padding:0;
}
</style>
Copy linkTweet thisAlerts:
@4nowauthorFeb 02.2007 — thanks Fang! that worked.

now I require a minor tweak

I would like the text (initial value) to be a few pixels away from the left border. My input boxes are thin 1.6em height, so if I assign padding of over 2px - the text will begin to drop too low in IE and FF (cut off in FF)

thanks again

textarea {

font-family: Arial, Helvetica, sans-serif;

font-size: 11px;

color: #696969;

letter-spacing: 1px;

background-color: D6E8F2;

background: url( veil.png );

border: 1px solid #ffffff;

overflow: hidden;

width: 26em;

height: 11em;

padding:.3em;

}

input {

font-family: Arial, Helvetica, sans-serif;

font-size: 11px;

color: #696969;

letter-spacing: 1px;

background-color: D6E8F2;

background: url( veil.png );

border: 1px solid #ffffff;

overflow: hidden;

width: 26em;

height: 1.6em;

padding:.3em;

}
Copy linkTweet thisAlerts:
@4nowauthorFeb 02.2007 — thanks

I discovered

padding-left & padding-right
×

Success!

Help @4now spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.1,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...