• I want to include a cafepress page in my web site. I have tried various iframe plugins but they all seem to have the same problem. I cannot specify a height of 100% and if I specify a pixel number, the entire cafepress page will display fine but when I click on an item, the item is displayed in the same height page, not collapsing for the small height of the one item.

    If anyone has a solution, I would really like to hear it. I also tried the html tag iframe but that didn’t work any better. I also tried using a wishads plugin for the cafepres store but couldn’t get it to work in 2.8.6.

Viewing 6 replies - 1 through 6 (of 6 total)
  • There’s no such beast as height:100%; in CSS. No matter how often people try to use it, it never works. I’d suggest using a pixel height initially and then re-examining the source of the page for one item to see if there are any additional CSS classes or ids that you can use to re-size the iframe.

    Thread Starter a_johnson

    (@a_johnson)

    Yea, that’s why I said I can’t specify a height of 100%. 🙂 I have been working on trying a new page but I just get errors in the php:

    <?php
    /*
    Template Name: Merchandise
    */
    ?>

    <?php get_header(); ?>

    <?php include ("http://www.cafepress.com/mycafepresspage"); ?>
    <?php include (TEMPLATEPATH . "/bottom.php"); ?>
    <?php get_footer(); ?>

    Your idea of using classes would work possibly but you would need if-thens somehow.

    <?php include ("http://www.cafepress.com/mycafepresspage"); ?>

    won’t work. An iframe is probably your best route.

    Thread Starter a_johnson

    (@a_johnson)

    I agree on the iframe, I just need to be able to adjust the height as the page height changes. That non-existant 100% would be nice.

    Can you post a link to a page with the iframe?

    Thread Starter a_johnson

    (@a_johnson)

    I took it down, sorry. The best thing for me would be a cafepress plugin but there doesn’t seem to be any that work for 2.8.6.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Iframe height problem’ is closed to new replies.