Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9142465
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:47:21+00:00 2026-06-17T09:47:21+00:00

fiddle The title appears overtop of the content above it. Adding the Twitter’s .clearfix

  • 0

fiddle

The title appears overtop of the content above it.

Adding the Twitter’s .clearfix to the container doesn’t seem to solve the problem. I’m not sure how to push my titlebar down below the content above it.

Suggestions?


.clearfix reference (from Twitter Bootstrap) — written in less:

.clearfix {
  *zoom: 1;
  &:before,
  &:after {
    display: table;
    content: "";
    // Fixes Opera/contenteditable bug:
    // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952
    line-height: 0;
  }
  &:after {
    clear: both;
  }
}

And use like:

.title-tabs {
  .clearfix;           /* HERE */
  border-bottom: 1px solid #91b6eb;
  position: relative;
  h3 {
    float: left;
    margin: 0;
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
  }
  /* etc... */
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T09:47:22+00:00Added an answer on June 17, 2026 at 9:47 am

    Here is probably what you are looking for

    http://jsfiddle.net/rUQ2z/2/

        <div class="main-content">
      <div class="container">
        <div class="access-details">
          <div class="pull-left">
            <div>Logged in: <b>John Doe</b>
            </div>
            <div>Access Lvl: Noob</div>
          </div>
          <div class="pull-right">
            <div>Sunday, January 13th, 2013</div>
          </div>
        </div>
        <div class="title-tabs clearfix">
          <h3>Client Details</h3>
          <ul class="nav">
            <li class="active"><a href="#">Details</a>
            </li>
            <li><a href="#">Program</a>
            </li>
            <li><a href="#">Special</a>
            </li>
            <li><a href="#">Docs</a>
            </li>
            <li><a href="#">Notes</a>
            </li>
          </ul>
        </div>
        <p>Welcome to Client Details</p>
      </div>
    </div>
    
    h3 {
      font-size: 36px;
    }
    .clearfix {
      *zoom: 1;
      &:before, &:after {
        display: table;
        content:"";
        // Fixes Opera/contenteditable bug: // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 line-height: 0;
      }
      &:after {
        clear: both;
      }
    }
    .title-tabs {
      .clearfix;
      border-bottom: 1px solid #91b6eb;
      position: relative;
      h3 {
        float: left;
        margin: 0;
        display: block;
        left: 0;
        bottom: 0;
      }
      ul {
        float: right;
        margin: 0;
        display: block;
        right: 0;
        bottom: 0;
        li {
          float: left;
          a {
            display: block;
            padding: 3px 5px;
            background-color: #f9fafe;
            .border-radius(5px, 0, 0, 5px);
            border-color: #91b6eb;
            border-width: 2px 2px 0 2px;
            border-style: solid;
            text-transform: uppercase;
            font-weight: bold;
          }
        }
        li + li {
          margin-left: -2px;
        }
      }
    }
    

    There is no need for position: absolute on the same class that uses float. You either use floats or you use position relative/absolute.

    You want to apply clearfix to the container that contains your float which will update the height of your container allowing the content below the clearfix to not overlap with your content above.

    EDIT

    If you are looking for an alternative answer dealing with dynamic content where you want the menu items to float right and and align bottom then tables is a way to do this.

    Take a look at the following code. I made the container be the table, title-tabs be the title-row and I added ul-container so I can make the menu items be contained within a table cell.

    http://jsfiddle.net/rUQ2z/11/

    <div class="main-content">
      <div class="container">
        <div class="access-details">
          <div class="pull-left">
            <div>Logged in: <b>John Doe</b>
            </div>
            <div>Access Lvl: Noob</div>
          </div>
          <div class="pull-right">
            <div>Sunday, January 13th, 2013</div>
          </div>
        </div>
        <div class="title-tabs">
          <h3>Client Details</h3>
          <div class="ul-container">
          <ul class="nav">
            <li class="active"><a href="#">Details</a>
            </li>
            <li><a href="#">Program</a>
            </li>
            <li><a href="#">Special</a>
            </li>
            <li><a href="#">Docs</a>
            </li>
            <li><a href="#">Notes</a>
            </li>
          </ul>
          </div>
        </div>
        <p>Welcome to Client Details</p>
      </div>
    </div>
    
    h3 {
      font-size: 36px;
    }
    .clearfix {
      *zoom: 1;
      &:before, &:after {
        display: table;
        content:"";
        // Fixes Opera/contenteditable bug: // http://nicolasgallagher.com/micro-clearfix-hack/#comment-36952 line-height: 0;
      }
      &:after {
        clear: both;
      }
    }
    .container {
      display: table;
      width: 100%;
    }
    
    .title-tabs {
      .clearfix;
      display: table-row;
      border-bottom: 1px solid #91b6eb;
      position: relative;
      h3 {
        margin: 0;
        vertical-align: bottom;
        display: table-cell;
        left: 0;
        bottom: 0;
      }
      .ul-container {
         display: table-cell;
        text-align: right;
        vertical-align: bottom;
      }
    
      ul {
        margin: 0;
        display: inline-block;
        right: 0;
        bottom: 0;
        li {
          float: left;
          a {
            display: block;
            padding: 3px 5px;
            background-color: #f9fafe;
            .border-radius(5px, 0, 0, 5px);
            border-color: #91b6eb;
            border-width: 2px 2px 0 2px;
            border-style: solid;
            text-transform: uppercase;
            font-weight: bold;
          }
        }
        li + li {
          margin-left: -2px;
        }
      }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sorry if the question's title doesn't really make sense but it's a problem
Here's a fiddle illustrating the problem. I am adding a jQuery one binding on
Here's the fiddle: http://jsfiddle.net/scZtb/1/ Be warned, as the title suggests, this might crash your
Here's a fiddle demonstrating the problem http://jsfiddle.net/mjmitche/MMWXj/1/ I have an About section and a
This fiddle http://jsfiddle.net/paultrotter50/fdvC5/ shows the problem I am having with detecting the height of
I am facing this problem #sub-title { width: 700px; margin: 0 auto; text-align:center; }
I try to figure out why the following fiddle doesn't work with ember.js 1.0.pre
At this fiddle , you can see a header-bar with a title on the
Edit 1) The following problem only occurs in chrome. (i edited the title) 2)
I'm really not sure how to properly title this problem Let me point to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.