I am facing problem in designing a review/feedback box.
Css-
.wellwhite
{
margin: 0 auto;
width: 75%;
padding: 24px;
margin-top: 35px;
background-color: #fff;
border: 2px solid #fff;
min-width: 269px;
position: relative;
}
.well-review
{
padding: 24px;
border: 1px solid #efefef;
background: #efefef;
box-shadow: 1px 1px 1px 1px #ccc;
position:relative;
}
.slide-feedback
{
position:relative;
}
.slide-feedback a
{
position:absolute;
}
Script
<script type="text/javascript">
$(function () {
$('.slide-feedback a').hide();
$('.slide-feedback a:first-child').show();
setInterval(function () {
$('.slide-feedback a:first-child').fadeOut(function () {
$(this).appendTo('.slide-feedback');
}).next().show();
}, 3000);
});
</script>
Problem seemed so simple to me but couldn't get a solution yet. I get content overflows from the boundary class.
Note-
I don't want to use overflow:hidden
because review would be varying according to user's feedback.
The active .slide-feedback a
is given position: absolute;
in the CSS... which causes it to overflow rather than expand the parent div.
Solution: http://jsfiddle.net/9hE5Y/4/
.slide-feedback a
{
position:static;
}
Try using overflow:hidden; on the box? Overflow can be set to auto, scroll or hidden. Can also use overflow-y for just vertical overflow control.
Remove position: absolute;
on .slide-feedback a
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.