Click to See Complete Forum and Search --> : Forcing the width of a table
couchmonkey
09-03-2003, 02:11 PM
I have a table which contains an external script from another server; the script is a newsfeed from that server. When the script runs, it makes my table wider than it is supposed to be. Does anyone know of a way to prevent the script from changing the width of my table? I have a feeling there isn't any solution, but I thought I should consult someone with more JS experience than me.
Charles
09-03-2003, 02:13 PM
This is just another example of why you are not supposed to use TABLEs for layout. TABLEs are for tabular data and as such the cells expand as necessary. Use CSS for layout instead.
couchmonkey
09-03-2003, 02:36 PM
Very well, does anyone know of a way to prevent an external Javascript from changing the width of my div?
Charles
09-03-2003, 02:41 PM
If you have re-written your site to eliminate the use of TABLEs for layout and you have put the output of your external script in a DIV of a set width and you are still having problems then post your URL. It should be working.
couchmonkey
09-03-2003, 04:20 PM
Unfortunately, I can't rewrite the whole site layout: I'd like to, believe me, but the company I'm working for has some kind of css phobia.
What I was able to do is make a simple test page that demonstrates my problem. It's at http://www.worldofdave.ca/testing/newstest.html