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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:15:53+00:00 2026-06-07T08:15:53+00:00

Hello i’m wondering if its not possible to set the right column to the

  • 0

Hello i’m wondering if its not possible to set the right column to the same height like the left column with an image inside. Everything without fixed heights?

fiddle: http://jsfiddle.net/GWZuq/3/

enter image description here

my HTML:

<div class="wrapper">
    <div class="left_col"><img src="http://www.monstersandcritics.de/image.php?file=downloads/downloads/musik/zaschamoktanstateofmind_1/images/group1/Zascha-Moktan-State-Of-Mind_201128_248803_1_024.jpg&width=600"></div>
    <div class="right_col">some text ul etc</div>

</div> 

my css:

.wrapper{
    width:80%;
}
.left_col{
    position:relative;
    width:80%;
    float:left;
}
.left_col img{
    position:relative;
    width:100%;
    height:auto;
}
.right_col{
    position:relative;
    width:20%;
    float:left;
    background-color:pink;
    height:100%; /* why is this not putting right col to 100% of the parent container?
}

Thanks a lot!

  • 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-07T08:15:54+00:00Added an answer on June 7, 2026 at 8:15 am

    Simply replace your CSS with the following CSS (example):

    .wrapper {
        width:80%;
        overflow:hidden;
    }
    .left_col {
        width:80%;
        float:left;
        padding-bottom:10000px;
        margin-bottom:-10000px;
    }
    .left_col img {
        display:block;
        width:100%;
        height:auto;
    }
    .right_col {
        width:20%;
        float:left;
        background-color:pink;
        padding-bottom:10000px;
        margin-bottom:-10000px;
    }
    

    Alternate solution

    Alternatively, you could change the HTML and CSS to use <figure> and <figcaption> (example). This solution also allows for aligning vertically:

    HTML

    <figure class="wrapper">
     <img src="http://www.monstersandcritics.de/image.php?file=downloads/downloads/musik/zaschamoktanstateofmind_1/images/group1/Zascha-Moktan-State-Of-Mind_201128_248803_1_024.jpg&width=600"><!-- Comment out white space
     --><figcaption>some text ul etc</figcaption>
    </figure>
    

    CSS

    figure.wrapper {
        width:80%;
        overflow:hidden;
        background:pink;
    }
    figure.wrapper img {
        width:80%;
        display:inline-block;
        height:auto;
        vertical-align:middle; /* top, bottom, or middle to align image vertically */
    }
    figure.wrapper figcaption {
        width:20%;
        display:inline-block;
        vertical-align:middle; /* top, bottom, or middle to align caption vertically */
    }
    

    Note: This solution uses new elements which will not work in IE8 and lower unless they are registered via JavaScript. This can be overcome by including html5shiv (Google Code, GitHub).

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

Sidebar

Related Questions

Hello I have like this 2 tables class User public int UserId{get;set;} { ....
Hello ! I need to create a report like the attachment shows with Jasper
Hello StackOverflow, I'd like to know if there is way to trigger an event
. Hello, In Interface builder it really easy to set the order of items,
Hello I have this code to show image from folder in php : $handle
Hello everybody i have asp.net mvc4 application where i made countdown something like this:
Hello, I have a short question. I would like to reset a variable that
Hello guys that is not normal :) !! foo.php <?php if (isset($_POST['data'])) $stringData =
hello i want to build silverlight application for wince6.0. im not getting whether we
Hello, I want to put custom status bar in notification window of iphone. is

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.