How can I include Piwigo?
- With an Iframe I see 2 scrollbars, no 100% height and an 1px line
- With an php include, I see nothing
I do this:
<?php
include ("../fotoalbum/index.php");
?>
What do I wrong?
Offline
Hi
you can't use php include, at all
about iframes, you will never be able to set an iframe to 100% height of it's container (page body or other), it works for width but not height, the only possibilities are fixed height or dynamic resizing in javascript
also please provide a working example, I don't know what "1px line" means
---
generally speaking, iframes must be avoided, you should spend some time customizing the theme and content of your Piwigo to make it looks like the rest of the website
Offline
well yes you can actually get a 100% height iframe, you just need to ensure that every container (even html and body) are 100% height
<!DOCTYPE html> <html> <head>....</head> <body> <iframe></iframe> </body> </html>
html, body, iframe { width:100%; height:100%; margin:0; padding:0; }
and then you get headaches when you want to add content with an iframe which height is 100% - height of my content
Offline