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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:45:55+00:00 2026-06-03T05:45:55+00:00

I’m attempting to create a complex div structure using CSS. I want it to

  • 0

I’m attempting to create a complex div structure using CSS.

I want it to be made up of four columns. On the left is just a list of images. On the right is the complex div structure that I can’t figure out a way to create. There should be two large vertical boxes containing various details. In-between these vertical boxes are any number of horizontal boxes.

My problem is that I cannot work out how to create this div structure in a way that ‘scales’, i.e. there could be any number of horizontal boxes between the two vertical boxes.

This is the div structure I was attempting to use:

<div class="result">
    <div class="detail_1">
        <p>Detail 1</p>
    </div>
    <div class="details">
        <p>Details</p>
    </div>
    <div class="details">
        <p>Details</p>
    </div>
    <div class="detail_2">
        <p>Detail 2</p>
    </div>
</div>

Any help would be greatly appreciated!

EDIT: I have fixed this problem by just using tables. Thanks for the replies.

  • 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-03T05:45:57+00:00Added an answer on June 3, 2026 at 5:45 am

    Update 2

    Your question is: How to make the price & flight_number div the same height as the parent div (container)..

    1) Use the technique described here: http://matthewjamestaylor.com/blog/equal-height-columns-cross-browser-css-no-hacks

    2) update your CSS so that the flight number and the price are vertical aligned in the middle of their div.

    I think that mine HTML structure is better then yours because it’s more clear and easier to work with.

    So based on my HTML structure: The parent container (flight_info) is stretchend as long as the content inside (the table with the rows will be the longest). the div’s flight_number and price are also the total height of the parent container thanks of the technique described in step 1 above. The extra CSS (step 2) will align the price and flight number nicely in the middle.

    OLD

    <ul id="flights">
    
    <li>
    <ul class="images">
        <li><img src="img1" alt="your image" /></li>
        <li><img src="img2" alt="your image 2" /></li>
    </ul>
    
    <div class="flight_info" id="flight_EK49">
        <div class="flight_number">
            EK49
        </div>  
    
        <table>
           <thead>
               <th>date</th>
               <th>from</th>
               <th>to</th>
           </thead>
           <tbody>
            <tr>
                <td>1/1/2013</td>
                <td>departure airfield</td>
                <td>destination airfield</td>
            </tr>
            ...
           </tbody>
        </table>
    
       <div class="price">
        €999,99
       </div>
    </div>
    </li>
    
    // duplicate the above for a new flight..
    </ul>
    

    And for the CSS style (you must do the rest on your own because this is just an example. I didn’t test any of the code):

    <style>
        #flights .images {
           float: left;
           width: 250px;
        }
    
        .flight_info {
            float: left;
            width: 700px; 
        }
    
        .flight_info .flight_number,
        .flight_info  .price {
            float: left;
            width: 150px;
        }
    
        .flight_info  .price {
            float: right;
        }
    
        .flight_info table {
            float: left;
            width: 400px;
        }
    </style>
    

    I think you will get the idea.

    EDIT 1

    Changed all the position absolutes to floats because it easier with the li’s automatic heights.
    I also added the leg images of the flight as well, but as I mentioned, you have to do the rest yourself 😉

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

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... 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.