Issue
Is there a way to embed a div from another website on my own without using anything other than HTML and/or CSS? I have not really started on JS, jQuery or PHP yet so I would like to see if there is a way without it.
The div I would like to embed is: http://imgur.com/user/BeachyBoy/favorites/#likes
Solution
You can use iframe to implement. For example:
<iframe src="http://www.google.com" width="100%" height="4000" frameborder="0" scrolling="yes"></iframe>
If you need to import a chunk of the page, it is not possible only using HTML/CSS. it involves cross-domain issue, so jquery, ajax..are needed.
Answered By - yong wu
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.