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 9225439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:34:36+00:00 2026-06-18T04:34:36+00:00

I have some content inside an article that is fluid in size, basically I

  • 0

I have some content inside an article that is fluid in size, basically I have applied display:table to the parent element and then display:table-cell and vertical-align:middle to the element I wish to center. My problem is however that Im unable to make the element I want to center 100% height of the parent article and was wondering how I can achieve this?

I have built an example on jsfiddle: http://jsfiddle.net/f29Mr/

And here is the sample css

.m-level-block {
    width: 91.66667%;
    float: left;
    margin-right: 0%;
    display: inline;
    margin-left: 4.16667%;
    margin-right: 95.83333%;
    background: black;
    margin-bottom: 10px;
}
.m-level-block .m-video-thumb {
    width: 18.18182%;
    float: left;
    margin-right: 0%;
    display: inline;
}
.m-video-thumb .video-stats-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}
.m-level-block .level-content {
    width: 81.81818%;
    float: right;
    margin-right: 0;
    display: inline;
    position: relative;
    display: table;
    height: 100%;
}
.m-level-block .level-content .level-info {
    padding: 2%;
    width: 55.55556%;
    display: table-cell;
    vertical-align: middle;
    max-height: 400px;
    height: 100%;
}
  • 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-18T04:34:37+00:00Added an answer on June 18, 2026 at 4:34 am

    What I did here is simpler but you should easily see how this can work:

    DEMO http://jsfiddle.net/f29Mr/3/

    HTML

    <div class="article">
        <div class="image">a</div>
        <div class="text">TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT TEXT</div>
        <div class="stats">HELLO</div>
    </div>
    

    CSS

    body, html {
        width: 100%;
        height: 100%;
    }
    
    .article {
        width: 90%;
        height: 20%;
        margin: 0 auto;
        border: 1px solid #666;
        display:table;
    }
    
    .article .image {
        width: 20%;
        height: 100%;
        background: #F00;
        display: table-cell;
    }
    
    .article .text {
        width: 60%;
        height: 100%;
        display: table-cell;
        vertical-align:middle;
    }
    
    .article .stats {
        height: 20%;
        width: 19%;
        display:inline-block;
        vertical-align:middle;
        display: table-cell;
    }
    

    LINK TO YOUR CONTENT WITH ABOVE APPLIED: http://jsfiddle.net/f29Mr/4/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an overlay that gets triggered by JS with some scrolling content inside
I have some heavy content inside UI dialog and need to resize it only
I have some content that I want to appear on multiple pages of my
I have some content that I am loading using jquery ajax. The content has
I'm doing some in browser editing, and I have some content that's on the
Hey guys I simply cannot get this to work. I have some content that
Okay, this is really confusing me. I have some content inside of a div
I have a transparent table with width:100% which contains some html content. I use
I have some html content inside my XML. Previously I could just use <xsl:copy-of
I have a small problem, I have some static content inside a div and

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.