View Full Version : Force width of table
jjr512
12-17-2000, 04:01 AM
Is there a way to force the width of a table to always be some specific width? I am not talking about the simple width=x attribute, either. What I mean is sometimes, in a dynamically-filled table, a long solid string of text will force the table to go wider than the width=x setting, and that completely throws everything off.
------------------
Justin J. "JJR512" Rebbert
JJR512.com (http://www.jjr512.com/)
ICQ: 52675695
PaulKroll
12-17-2000, 04:27 AM
Yeah, I think you're precisely correct: it WILL make the cells stretch. So you're like, out of luck.
You can try using tables within a cell: that certainly seems to put the smack down on the expansion of cells in IE5, if I recall. But ultimately, this is HTML, and it's not really meant to do what I think you're looking to do.
It's possible that CSS would help, if you can handle the browser variations. Or use PHP to generate a PDF file, assuming folks using your site would be able to handle viewing/printing PDFs.
Justin,
I wonder if putting a transparent .gif image in the table at the width you want would help??[nbsp][nbsp]I'm not sure, just throwing it out there.
Mark
Mark's got it right... that's how to do it.[nbsp][nbsp]Stretch your transparent gif's to the right width or height to make sure your cells don't stretch.
Drew
------------------
drewmedia Studios
www.drewmedia.com (http://www.drewmedia.com)
tedloh
12-24-2000, 10:20 AM
That's the way to force a minimum width.[nbsp][nbsp]However, it would not prevent a long text string from stretching it beyond a maximum width.
------------------
Ted (Chief Do-It-All)
Got2Bet.com - The Net's Winner's Circle
http://www.got2bet.com
ted@tygresystems.com
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.