• Welcome to Sitemap Generator Forum.
 

sitemap in an iframe problem

Started by ray.richardson3, August 08, 2013, 09:48:57 AM

Previous topic - Next topic

ray.richardson3

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 forum administrators only ]

ray.richardson3

Problem solved via CSS for responsive pages.
put iframe in div called [ External links are visible to forum administrators only ].
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 -->