34 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?

2588 posts Put a Donk On It
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Made it to the Authors' Hall of Fame
  • Has sold $250,000+ on Envato Market
+10 more
ThemeProvince says

No. :)

1383 posts
  • Has been part of the Envato Community for over 5 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.

34 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.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by