dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: can't figure out why div collapsed and JS won't display, please help!

  1. #1
    Join Date
    May 2013
    Posts
    12

    can't figure out why div collapsed and JS won't display, please help!

    Yesterday this page looked fine and today it's not (http://iphonebuy-host1.gaiahost.net/index.html) Clearly I must've inadvertently deleted or changed something but I can't figure out what!

    There is a form embedded in #reviews-code using JavaScript, but it is suddenly not displaying. Also #reviews is not expanding to fit its contents any longer. CSS is below:

    #reviews {
    background:#F2F2F2;
    width:57em;
    height:100%;
    margin:-1.5em 0 2em 0;
    padding:1em 1.5em 1em 1.5em;
    border-radius:1.5em;
    -moz-box-shadow: 0 2px 2px 2px #ccc;
    -webkit-box-shadow: 0 2px 2px 2px #ccc;
    box-shadow: 0 2px 2px 2px #ccc;
    }

    /** Reviews text box **/
    #reviews-text {
    background:#fff;
    width:14.8em;
    padding:.5em .8em;
    border-radius:1em;
    float:left;
    -moz-box-shadow: 0 2px 2px 1px #ccc;
    -webkit-box-shadow: 0 2px 2px 1px #ccc;
    box-shadow: 0 2px 2px 1px #ccc;
    }

    /** container for embedded ReVu window **/
    #reviews-code {
    margin:0 0 .5em 17.8em;
    padding:.5em;
    width:38em;
    background:#fff;
    border-radius:1em;
    -moz-box-shadow: 0 2px 2px 1px #ccc;
    -webkit-box-shadow: 0 2px 2px 1px #ccc;
    box-shadow: 0 2px 2px 1px #ccc;
    }


    And HTML/JavaScript:

    <div id="reviews">
    <h2>Reviews</h2>
    <div id="reviews-text">
    <p>To prove our trustworthiness, check out our customer reviews. Comments
    here can not be deleted - you are getting the unedited truth from our past customers!
    We have no fear of anything our customers have to say, as we will do whatever it
    takes to make you happy. Be assured that you will get only honesty and fairness
    from us. So, please leave your honest comments.</p>
    <p>Questions? Email us at: <br />support@appleiphonebuyers.com.</p>
    </div>
    <div id="reviews-code">
    <script type="text/javascript">
    var revsysJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
    document.write(unescape("%3Cscript src='" + revsysJsHost + "re-vu.com/reviewsystem/embed_code.js' type='text/javascript'%3E%3C/script%3E"));
    </script>
    <script type="text/javascript">
    try{
    var revsys_shortname = 'appleiphonebuyers';
    var revsys_identifier = 'unique_dynamic_id_1234';
    var revu_width= '600';
    show_review();
    } catch(err) {}
    </script>
    </div>
    </div>

  2. #2
    Join Date
    May 2013
    Posts
    12
    Also, both CSS and HTML check out as valid.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles