Pulling external HTML using CSS

Discussion in 'Web Design and Development' started by 7on, May 20, 2008.

  1. 7on macrumors 601

    7on

    Joined:
    Nov 9, 2003
    Location:
    Dress Rosa
    #1
    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!
     
  2. Delameko macrumors member

    Joined:
    May 1, 2008
    #2
    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.
     
  3. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #3
    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.
     

Share This Page