ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Is there anyway to let html code, e.g. a table, draw itself out without paying any attention to the size of the page? I have a situation where i am drawing a table which needs to fit precisely inside a window, but I want the content to define the size of the window. Sadly i'm coding an intranet that only uses IE, and can't find any other way to accomplish this as ie values such as document.body.scrollwidth just increase to the entire width of the page, so to get a suitable value I am resizing the window to (100,100) and then getting the scroll value. but of course resizing it makes the table details wrap. I've combatted this for now with some <nobr>'s and other padding but this sucks. any way to stop this happening? in a div or something?
Or alternatively will a div potentially be able to shrink to fit a table when the entire page won't? I fundamentally want to get the size of an unadultered, unrestrained, unwrapped table. possible?
Any other way I'm too dumb to think of?
[for drew] mock version of the page: http://thirtythreeandathird.net/blahblah.html
as you can guess if you make the page smaller than the table it wraps. if you make the page larger, there's no way to find the width of the table.
Last edited by acid_kewpie; 06-19-2003 at 02:47 PM.
but how? only way i've found is to make the page smaller than the table and reference scrollwidth for IE, which causes the table to distort. I've found plenty of great ways to resize a popup to fit an image, but an image won't resize itself if in a confinded space, text, and therefore a table, will.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.