Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

7on

macrumors 601
Original poster
Nov 9, 2003
4,939
0
Dress Rosa
Let's say I have an html document that only has
Code:
<table><tr><td>awesome</td></tr></table>
on it and it's named table.html. Is there anyway to have a
Code:
<div style="src:url(table.html)"></div>
or something like that in another html doc that pulls the table.html?

Thanks!
 
You'd need to use a dynamic language (like PHP or ASP)... or I think you can do it with Javascript/AJAX, but my JSfu is weak.
 
No, CSS can't do anything like that. Look into SSI (server side includes), PHP's include function, AJAX (though this would be the hardest to implement), or iframes.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.