2 Replies - 499 Views - Last Post: 21 January 2012 - 11:29 AM

Topic Sponsor:

#1 mqf  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-January 12

Embeding webpage into another and changing top margin

Posted 20 January 2012 - 05:45 PM

I am using Wordpress and am trying to embed a webpage into a webpage but remove some of the top margin so that it does not show the entire webpage of the page I'm linking from but a protion of it. I am able to do it on my office365 site but can not get it to work in Wordpress. Any help would greatly be appreciated.
Is This A Good Question/Topic? 0
  • +

Replies To: Embeding webpage into another and changing top margin

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1758
  • View blog
  • Posts: 2,693
  • Joined: 08-June 10

Re: Embeding webpage into another and changing top margin

Posted 21 January 2012 - 11:25 AM

Why do you want this?

The way you say that it sounds like you are trying to show content from another website, but hide the header so it looks like it's actually your content.

In any case, you can show another website inside your own using an iframe -- unless that website sets certain headers to prevent it -- but there are restrictions. This includes that you can not access the DOM of that page, so that you can not read or alter the page with Javascript. Meaning you couldn't hide it from view. - The best you could ever hope to do is move the iframe out of view, or place another element on top of it to "hide" the top of the frame.
Was This Post Helpful? 0
  • +
  • -

#3 mqf  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 20-January 12

Re: Embeding webpage into another and changing top margin

Posted 21 January 2012 - 11:29 AM

My reaseon for wanting it done is because I am a real estate agent and am wanting to link my idx to multiple domains. With me having different domain names, I dont need the header to show so I'm trying to change the top margin so that it does not show my info. I am able to do it with my officelive/365 websited but not with WP
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1