![]() |
CSS Padding / Textarea problems
1 Attachment(s)
Hi all,
I'm having some problems using a textarea inside a div that has padding set. I have the following in my CSS: CSS Code:
All page content is then wrapped in <div id="content"> to give some space at either edge of the page. Unfortunately, this also effects textareas: Attachment 173 Can any of you CSS experts clue me in on how to stop the textarea using the padding please? :-) Thanks, Alan |
You can target the textareas directly by adding a class, or indirectly by referring to all text areas in the content div or by all textareas and reset their padding.
Code:
#content textarea {Code:
|
I tried to reproduce it here with a simple page but had no luck at all. Tested on Opera 9.26, Firefox 2.0.0.12 and IE7, all of them worked.
HTML Code:
<html>padding: inherit; for the textarea style but it had no effect. Maybe you can correct it with padding: 0 in the textarea style? |
Thanks Gareth, I used your first suggestion and it works great :-)
Alan |
Glad to have helped! (For once! normally it is my asking for help :P)
Edit: Quote:
Gareth |
That Gareth is the sign of progress - of student to master :D
|
| All times are GMT. The time now is 05:19 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0