Jump to content

Isolating CSS to a single DIV.


dmarquard

Recommended Posts

I have an interesting situation.  <i>Basically</i>, I want to be able to include a webpage's source, in its entirety, within my website.  This can be easily accomplished by including it through an IFRAME; however, I want to avoid that all costs.  Google does not index IFRAMES within the parent page's source and also don't show ads in the parent page relevant to the contents of the IFRAME.

 

I basically want to isolate the entire source of a webpage in a single DIV.  This DIV will ignore all formatting options of the parent page and inherit the remote page's source to be displayed just as it would in an IFRAME.

 

I hope this makes sense.  Any help would be greatly appreciated.  :)

Link to comment
Share on other sites

It's possible that you could simply grab only the text from the site and paste it into the div. But like Xurion said, you can't do that with just CSS. You'd have to use something like PHP to grab the source and strip all the tags and then render only the left over text without any tags to worry about.

Link to comment
Share on other sites

It's possible that you could simply grab only the text from the site and paste it into the div. But like Xurion said, you can't do that with just CSS. You'd have to use something like PHP to grab the source and strip all the tags and then render only the left over text without any tags to worry about.

 

I think I get what you're saying.  What I'll do is include the original in an IFRAME and strip the tags of the page's source and include it in an invisible DIV.  Think that'll serve my purpose?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.