Say I have a container that has 75% width... How do I have my textarea take up the full width, including a padding of 2px and 1px border? If I just do style="width:100%" ... it will take up 100% plus 6 extra pixels...?
What do you mean? The form control, <textarea>? Or do you mean a block element that can contain text? If the latter, just don't set a width. A block element takes all the available width, with allowances for padding, borders and margins. cheers, gary
if you are talking about the form control, you could always just set it at 98 or 99% and the padding and borders should fit into there nearly making 100%. I know its not spot on but should be fine. another way is to add a negative right or left margin for however much extra you need, but in ie6 it just cuts the negative margin out of view unlike modern browsers.