The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Comments Template Not Being Recognized as Part of DIV? (WP)

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #34428

    I’ve been hammering this question out over at stackoverflow with some folks:

    Take a look here to see the problem:

    I am using a javascript to make the height of #post_content and #sidebar match. I have figured out the problem is it works perfectly, but once the comments template is added to my single-post.php it all falls apart and the heights no longer match (as shown in the link). What do I have to do to make this code realize comments.php is wrapped by post_content!?

    Here is my javascript:

    CSS that may/may not play a role:

    #container {
    width: 1126px;
    clear: both;
    overflow: hidden;
    #post_content {
    clear: both;
    display: block;
    float: left;
    overflow: hidden;
    width: 660px;
    background-color: #FF0000;
    #sidebar {
    display: inline-block;
    float: right;
    width: 410px;
    overflow: hidden;
    background-color: #0000FF;
    #respond {
    #commentlist {

    My markup:


    By | |

    '); ?>

    echo 'Short URL '.$turl.'' ?>

    No matching entries found.

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.