29 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
dabaman says

Hi everybody,

If some wrapping element has ‘overflow: hidden’ applied, is there any way for a child element inside it to somehow overflow that wrapper? Normally, when ‘overflow: hidden’ is applied, everything that extends it’s borders gets clipped, but I think that must be some way to workaround this.

I’m having a page with a lot of drop down boxes which needs to extend over it’s wrapping element, but I also need to keep the overflow:hidden applied. One of the drop-downs I’m using is the jQuery Tools dateinput which overflow that element without any problem, but everything else gets clipped. Anybody have an idea?

2580 posts Put a Donk On It
  • Has referred 200+ members
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+10 more
ThemeProvince says

No. :)

1383 posts
  • Has been part of the Envato Community for over 4 years
  • Has referred 10+ members
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
wpCanyonThemes says

Nope.

But what are you using the overflow:hidden; for?

If it’s to clear floats, don’t.

.col-clear:after{ content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.col-clear{ .zoom:1; }

Use the col-clear class on the parent with floated elements.

29 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 10+ members
  • Has sold $40,000+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
dabaman says

Thanks guys. I’m not trying to clear floats with overflow: hidden. The problem is that I have a three column layout inside another wrapping element. Two columns (sidebars) have a background applied so it creates a visual separation between them. I want to make them of equal height (because as you all probably know, columns do not stretch it’s hight automatically to fill entire space), and because of that I was using the method with large padding and margin values:

.left_sidebar, .right_sidebar  { 
margin-bottom: -5000px;
padding-bottom: 5000px; }

.wrapper { overflow:hidden; }

And hence the overflow:hidden – necessary to clip anything extensive. I know that there is an alternative method to this called faux columns but I can’t use it because I’m having a liquid layout.

by
by
by
by
by
by