Need to make a div tag same width as preceding table
Posted on 2011-09-28
I have buttons in a button div tag I'd like to make the same width as the table above it. The buttons can not be part of that table since that's creating weird AJAX jqGrid delays and we solved that by moving it outside the table.
Now I just need to adjust the width.
I can use the padding: and set the right border, but do not want an explicit number of pixels. I want the right edge to line up with the right edge of the table above it.
I would like to use the float style, but want to make it resolution independent.
Can I request the width of the table? Then use that in the div tag?