XML Sitemaps Generator

Author Topic: sitemap in an iframe problem  (Read 6370 times)

ray.richardson3

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
sitemap in an iframe problem
« on: August 08, 2013, 08:48:57 AM »
Installed and running fine.
Trying to put the generated sitemap into an iframe to keep site design.
Iframe will not change height despite adding height attribute to iframe or div it is in.
Is the height set by the sitemap html page css or html??
See - [external links are visible to admins only]

ray.richardson3

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: sitemap in an iframe problem
« Reply #1 on: August 08, 2013, 12:04:30 PM »
Problem solved via CSS for responsive pages.
put iframe in div called embed.box.
Hope this helps others.

<!-- iframe css -->
   <style>
   .embed-box {
    position: relative;
    padding-bottom: 80%; /* ratio adjust for iframe height */
    padding-top: 30px;
    height: auto;
    overflow: hidden;
}
.embed-box iframe,
.embed-box object,
.embed-box embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
</style>
   <!-- end iframe css -->

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2