Jump to content

firefox incorrectly padding textarea


jacko310592

Recommended Posts

hey guys,

 

in every browser other than ff (it seems), padding within a textarea does not move the scrollbar, but in ff, its as if the padding is applied round the outside, not on the inside of the textarea (meaning it also puts padding around the scrollbar).

 

heres a screenshot of my problem:

1sxxsk.png

 

/*TEXTAREA CSS*/
textarea {
height: 65px;
width: 310px;
margin: 0;
border: 0;
padding: 10px;
float: left;
font-size: 12px;
font: 12px Verdana, Geneva, Sans-serif;
}

 

can anyone think of a solution to this problem?

thanks

Link to comment
Share on other sites

You can set the right padding to zero, and that will keep the scroll-bar from sticking out into the middle. it will still have padding above and below the scrollbar, but its better than also having it on the right of the scrollbar.

Link to comment
Share on other sites

i decided to go with a hack, bad i know, but at least on the face of it it looks better now.

 

2iu2jvp.png

 

this was done with the following code:

@-moz-document url-prefix() {
.quickPost textarea {
	padding: 0;
	padding-left: 6px;
	line-height: 25px;
}
}

 

the bad thing about this solution (apart from the fact its a hack) is that as you can see, im using the a large line height property to replicate the top padding, this of course isn’t good for a small textarea

 

261yef9.png

 

if i cant find a better solution to this, i think ill end up using the line height technique, simply in the interest of making it look the same throughout all browsers

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.