I need to embed a search form from external website. Currently I am using the IFRAME with css trick
#outerdiv{ width:446px; height:246px; overflow:hidden; position:relative; }
#inneriframe{ position:absolute; top:-412px; left:-318px; width:1280px; height:1200px; }
<div id="outerdiv"><div id="innerdiv"><iframe></iframe></div></div>
which helps to display particular div only but i want to load particular div rather than whole site and display particular div.
I tried PHP SIMPLE DOM PATSER (Fetching Data From A Specific div id Using PHP)
include('simple_html_dom.php');
$html = file_get_html("http://www.farebuzz.com");
$displaybody = $html->find('div[class=search_bg]', 0)->plaintext;
But it only gives the content without stylesheet and functionality.
So is there any way of fetching particular div along with it's style and functionality.