Skip to content

Instantly share code, notes, and snippets.

@kyungw00k
Created May 27, 2015 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyungw00k/7c92b76d71db460f2b7b to your computer and use it in GitHub Desktop.
Save kyungw00k/7c92b76d71db460f2b7b to your computer and use it in GitHub Desktop.
bootstrap hack: fix content width inside hidden tabs
/* bootstrap hack: fix content width inside hidden tabs */
.tab-content > .tab-pane,
.pill-content > .pill-pane {
display: block; /* undo display:none */
height: 0; /* height:0 is also invisible */
overflow-y: hidden; /* no-overflow */
}
.tab-content > .active,
.pill-content > .active {
height: auto; /* let the content decide it */
} /* bootstrap hack end */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment