how to make chosen select go over parent div

后端 未结 2 1696
粉色の甜心
粉色の甜心 2021-01-14 05:06

I created a jsFiddle which shows the chosen-select control being \'truncated\' by it\'s parent div. And even though the overflow is se

2条回答
  •  天命终不由人
    2021-01-14 05:35

    Simply add this CSS class:

    Added border to show you the definition of your other box is staying fixed.

    div.content { position:absolute; }

    enter image description here

    View Here: http://jsfiddle.net/SinisterSystems/e62Wu/3/

    When you select position:absolute, you are effectively telling it to ignore the constraints of your fixed parent div and be able to bound outside the box.

    Does this answer the question? I can elaborate further if you'd like.

    EDIT:

    absolute positioning will remove it from the flow of the rest of the document and treat it as if it didn't exist (it displays where you tell it to, but will not modify other element flow).

    Try just adding a spacer like so:

    CSS:

    div.filler {
        height:30px;
    }
    

    HTML:

    ...
    
    提交评论

提交回复
热议问题