I'm reading a lot into your question, since the question itself wasn't clear. But hopefully this is what you are looking for. My guess is that you want the buttons to be
equal widths, but not
hard-coded widths.
Here's a function to set them all to match the widest one, each time the page loads:
$(function () {
var maxWidth = 0;
$('.txt').each(function () {
maxWidth = Math.max($(this).width(), maxWidth);
});
$('.txt').width(maxWidth);
});
This ensures that all buttons are the same width, but the minimum width necessary to fit the widest text.