Forum Moderators: not2easy

Message Too Old, No Replies

included table not following CSS

         

williane

7:13 pm on Sep 27, 2008 (gmt 0)

10+ Year Member



Hi,

I have a page that is pulling content from another site. The other site provides a link to embed a "feed" of your account postings to the pages on your own site. This is done by adding a js file to your page:

<script src="http://www.example.com/includes/xmlfeed.js" type="text/javascript"></script>

The above adds a table with some information in it to the page on my site. The problem is this table is too wide to fit properly on the page due to my navigation bar. I have tried putting the table in a div/table with an absolute width but the table coming from the other site still displays at 850px instead of the 590 I want it to be. I have also tried using !important but that doesn't work either.

Does anyone know how I can force an external table to fit my site?

Thanks in advance for any help.

[edited by: tedster at 10:53 pm (utc) on Oct. 4, 2008]
[edit reason] exemplified, see posting guidelines [/edit]

swa66

10:55 pm on Oct 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Technically you can always add javascript and access the settings what the other script created to change them to what you want to have. If you'd do that with some you would be breaking their Terms of Service, so be careful.

You could add a div around it and set overflow, but the result might not be what you seek (scroll bars or cut-off content)

The last solution is to use some server side scripting to fetch the content and format it yourself as you like.

But in all cases: take care with terms of service.