Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS put the content in an ifrrame with top -margin

  • This topic is empty.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #34832
    amyth91
    Participant

    hi folks, designing a web page and i am using an iframe to load a moodle page from external source. now, when i put the iframe , the whole content comes up and the moodle header is visible. is there any possible way to make the content in the iframe look like it was right there in the page. i mean, is there a possible way to get rid of the top content ?

    like here

    http://jsfiddle.net/HBjAL/2/embedded/result/

    how can i get rid of the header part. ???

    #89328
    chrisburton
    Participant

    A negative top margin won’t work if you have content above it.

    #89330
    chrisburton
    Participant

    Javascript? Someone might be able to tell you if it’s possible with JS but I’m not one of them. =/

    #89357
    zackw
    Member

    p

    #90033
    whitneyit
    Participant

    you could use jQuery:

    $( '#element' ).load( 'http://url.com/page.html #container' );

    This will load the html inside #container into the html of ‘#element’

Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘CSS’ is closed to new topics and replies.