Note that there are some explanatory texts on larger screens.

plurals
  1. POChangin top div height but below items not change position
    primarykey
    data
    text
    <p>There are some float divs top of each other.when user hovered on on of them,the height increases with jQuery command:</p> <pre><code> $(".concert").hover(function () { $(this).parent().find(".concert[opened='opened'] .concertbody").animate({ height: "0px" }, { duration: 400, queue: false }); $(this).parent().find(".concert[opened='opened'] .concertHeader .middle").css("background-image", "url(Images/concert-header-back.png)"); $(this).parent().find(".concert[opened='opened'] .concertbody").css("border", "none"); $(this).parent().find(".concert[opened='opened'] .concertbody .concertDetails").css("visibility", "hidden"); $(this).find(".concertbody").animate({ height: "276px" }, { duration: 400, queue: false }); $(this).find(".concertHeader .middle").css("background-image", "url(Images/concert-header-back-hover.png)"); $(this).find(".concertbody").css("border", "1px solid whitesmoke"); $(this).find(".concertbody .concertDetails").css("visibility", "visible"); $(this).parent().find(".concert[opened='opened']").removeAttr("opened"); $(this).attr("opened", "opened"); }); </code></pre> <p>The layout is Ok,other divs goes down,but when i use firebug and check the other divs tag,the position doesn't change.</p> <p>The Html of the page : </p> <pre><code> &lt;div class="parent"&gt; &lt;div class="concert" id="ct1"&gt; &lt;div class="concertHeader"&gt; &lt;div class="middle"&gt; &lt;span class="concertName"&gt;کنسرت همایون شجریان&lt;/span&gt; &lt;span class="concertCity"&gt;تهران&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concertbody"&gt; &lt;div class="concertDetails"&gt; &lt;span&gt;محل دیدار : سالن همایش های بین المللی میلاد تهران&lt;/span&gt; &lt;select class="test2"&gt; &lt;option value="1"&gt;16:30&lt;/option&gt; &lt;option value="2"&gt;18:50&lt;/option&gt; &lt;/select&gt; &lt;select class="test"&gt; &lt;option value="1"&gt;بیست و هشتم اردیبهت ماه نود و دو&lt;/option&gt; &lt;option value="2"&gt;بیست و هشتم اردیبهت ماه نود و دو&lt;/option&gt; &lt;option value="3"&gt;بیست و هشتم اردیبهت ماه نودو دو&lt;/option&gt; &lt;/select&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concert" id="ct2"&gt; &lt;div class="concertHeader"&gt; &lt;div class="middle"&gt; &lt;span class="concertName"&gt;کنسرت همایون شجریان&lt;/span&gt; &lt;span class="concertCity"&gt;تهران&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concertbody"&gt; &lt;div class="concertDetails"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concert" id="ct3"&gt; &lt;div class="concertHeader"&gt; &lt;div class="middle"&gt; &lt;span class="concertName"&gt;کنسرت همایون شجریان&lt;/span&gt; &lt;span class="concertCity"&gt;تهران&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concertbody"&gt; &lt;div class="concertDetails"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concert" id="ct4"&gt; &lt;div class="concertHeader"&gt; &lt;div class="middle"&gt; &lt;span class="concertName"&gt;کنسرت همایون شجریان&lt;/span&gt; &lt;span class="concertCity"&gt;تهران&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concertbody"&gt; &lt;div class="concertDetails"&gt;&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;div class="concert" id="ct5"&gt; &lt;div class="concertHeader"&gt; &lt;div class="middle"&gt; &lt;span class="concertName"&gt;کنسرت همایون شجریان&lt;/span&gt; &lt;span class="concertCity"&gt;تهران&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; </code></pre> <p>And The CSS :</p> <pre><code>.container { width: 972px; height: 532px; margin-right: auto; margin-left: auto; border: 1px solid white; border-radius: 5px; } .parent { width: 324px; height: 490px; float: right; } .parent .concert { width: 324px; height: 40px; margin: 2px; } .middle { --background-image:url("../Images/concert-header-back.png"); background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2JmYmZiZiIgc3RvcC1vcGFjaXR5PSIxIi8+CiAgICA8c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiNlNWU1ZTUiIHN0b3Atb3BhY2l0eT0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0idXJsKCNncmFkLXVjZ2ctZ2VuZXJhdGVkKSIgLz4KPC9zdmc+); background: -moz-linear-gradient(top, rgba(191,191,191,1) 0%, rgba(229,229,229,1) 100%); /* FF3.6+ */ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(191,191,191,1)), color-stop(100%,rgba(229,229,229,1))); /* Chrome,Safari4+ */ background: -webkit-linear-gradient(top, rgba(191,191,191,1) 0%,rgba(229,229,229,1) 100%); /* Chrome10+,Safari5.1+ */ background: -o-linear-gradient(top, rgba(191,191,191,1) 0%,rgba(229,229,229,1) 100%); /* Opera 11.10+ */ background: -ms-linear-gradient(top, rgba(191,191,191,1) 0%,rgba(229,229,229,1) 100%); /* IE10+ */ background: linear-gradient(to bottom, rgba(191,191,191,1) 0%,rgba(229,229,229,1) 100%); /* W3C */ width: 320px; height: 40px; float: right; border-radius: 5px; } .concertHeader:hover .middle { width: 320px; height: 40px; float: right; } .rightSide { background-image: url("../Images/concert-header-right-side.png"); width: 5px; height: 40px; float: right; } .leftSide { background-image: url("../Images/concert-header-left-side.png"); width: 5px; float: right; height: 40px; } .concertName, .concertCity { font-size: 8pt; color: Black; margin-top: 16px; } .concertName { width: 250px; display: inline-block; margin-right: 10px; } .concertCity { margin-right: 5px; } .concertbody { height: 0px; width: 318px; margin-right: 0px; margin-top: 1px; margin-bottom: 1px; border-radius: 5px; } </code></pre> <p>What should i do for this problem?</p> <p>Regards</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload