Click to See Complete Forum and Search --> : Fairly simple HTML question
Rabidmuskrat
September 26th, 2005, 06:30 PM
I was wondering if there was any simple way to make a submit button (<input type="submit") stretch out to the size of a table cell without setting a predefined size for either. I have a dynamic table with submit buttons in the top row. I'd like the buttons to fill up the entirety of that cell but I don't want to resize the table cells. If anyone can help me out with this it would be greatly appreciated.
Dr. Script
September 26th, 2005, 06:52 PM
try adding to the <input> or <button> tag:style="width:100%"You might want to make it like 95 for a little padding. This is assuming I understood the question clearly.
Rabidmuskrat
September 28th, 2005, 02:23 PM
That is exactly what I needed and I feel like an idiot for not trying it before you suggested it. Thanks!
Dr. Script
September 28th, 2005, 03:00 PM
Don't feel like an idiot. You should feel really smart. You had an issue. You asked at the right place, clearly with what you wanted. And you got rewarded. It's called learning. And unless we are all idiots, what you did wasn't idiotic.
PeejAvery
September 28th, 2005, 03:32 PM
Rabidmuskrat, I suggest reading up on CSS and whatever else you like at W3Schools (http://www.w3schools.com). I would deem it as the best site to learn and improve web skills.
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.