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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:50:40+00:00 2026-06-14T20:50:40+00:00

I have a container div it contains multiple floated divs I want a specific

  • 0

I have a container div it contains multiple floated divs I want a specific border div inside the container to have 90% height of the container itself however it doesn’t seem to detect the height of the container even though I’ve applied clear:both at the end of the container and also overflow:hidden to to the container div.

  • 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-14T20:50:42+00:00Added an answer on June 14, 2026 at 8:50 pm

    You can use this js script:

    <script type="text/javascript">
        $(document).ready(function() {
            setHeight();
            $(window).resize(function() {
               $('.seperator2').css({ height: '50px'});
               setTimeout(function(){
                  setHeight();
                },300);        
            });
       });
      function setHeight(){
         var contentH = $('.content').height();
         separatorH = parseFloat(contentH * 0.9);
         $('.seperator2').css({ height: separatorH });
      }
    </script>
    

    This script can be either in the head or at the very bottom of the page. Despite of the place, make sure first you link jQuery library.

    NOTE: To linkjQuery library in the head(or elsewhere in the page), use the script bellow:

    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
    

    EDIT: you can set the height of the element to 0 or remove it completely. Still I would probably leave it as height: 100;; this will force the page to look decent, before the script is executed.

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

Sidebar

Related Questions

I have a div with multiple lis and each li contains ul. I want
I have a container DIV which contains several block-DIVS. Every block-DIV contains SPAN items
I have multiple containers like this <div class=container> <span> <!-- Inside the span is
I have a div that contains two other divs,, like this: ---------------------------- | |
I need a html document, that contains multiple div's with 100% height (screen filling)
I have a page generated by Yii CListView which contains a div and multiple
So basically I have multiple div classes called quote that contains a text and
I have a div with multiple spans inside. The spans contain text that cannot
How can have a div which contain multiple multiple div it may 4-6-8 how
I have these div blocks called columns where each column div contains separate two

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.