Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Issues
  • #204
Closed
Open
Issue created Sep 13, 2011 by Adam Lounds@adamlounds

tab-content div overlaps ul - pre makes everything go grey

Thx for Bootstrap, it rocks :-)

If I put a <pre> inside the tab-content <div> under the tabs <ul>, the whole area (including the tab area) goes grey - the <div> seems to cover the whole area. This is on the 1.3-wip branch. tested on ff6.0.2, ff nightly, webkit nightly, chrome canary osx.

eg

<ul class="tabs" data-tabs="x" >
  <li class="active"><a href="#mypre">pre</a></li>
</ul>
<div id="my-tab-content" class="tab-content">
  <pre class="active" id="mypre">preformatted text</pre>
</div>

Workaround is to wrap inside a div with a padding <p>, eg

<ul class="tabs" data-tabs="x" >
  <li class="active"><a href="#mypre">pre</a></li>
</ul>
<div id="my-tab-content" class="tab-content">
  <div class="active" id="mypre"><p>&nbsp;</p><pre>preformatted text</pre></div>
</div>
Assignee
Assign to
Time tracking