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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:59:49+00:00 2026-05-15T04:59:49+00:00

I’m an old school tables guy, and am pretty baffled when it comes to

  • 0

I’m an old school tables guy, and am pretty baffled when it comes to modern HTML. I’m trying to something as simple as vertical / horizontal layouts (i.e. Flex’s hbox/vbox), but am having major difficulty replicating them.

An old table would look something like this for an HBox:

<table width="100%" height="100">
    <tr valign="middle">
        <td nowrap style="background-color:#CCC">I am text on grey</td>
        <td width="50%" valign="top">displays top</td>
        <td width="50%" align="right">Autosize Fill (displays bottom right)</td>
    </tr>
</table>

Now I’m trying to do this with div’s, but to no avail. When using display:inline, I cannot set a percentage width — it only takes explicit widths. When using float:left, settings 100% percentage width causes it to really be 100% and pushes the next div down.

Here’s the code I’ve been playing with:

<html>
<head>
</head>
<style type="text/css">
div.test { background-color: #EE9; padding:5px;}
body { font-family: Arial; }

ul {
    list-style-type:none;
}

ul li {
    float:left;
}

.hboxinline div {
    display: inline;
}

.hboxfloat div {
    float:left;
}

.cellA {
    background-color:#CCC;
    width:100%;
}
.cellB {
    background-color:#DDD;
    min-width:100;
}
.cellC {
    background-color:#EEE;
    min-width:200;
}

</style>

<body>
A = 100%, b = 100, c = 200

<div class="test">old school table
<table cellpadding="0" cellspacing="0">
    <tr>
        <td class="cellA">A</td>
        <td class="cellB">B</td>
        <td class="cellC">C</td>
    </tr>
</table></div>

<br/>

<div class="test">
    float:left
    <div class="hboxinline">
        <div class="cellA">A</div>
        <div class="cellB">B</div>
        <div class="cellC">C</div>
    </div>
</div>

<br/>

<div class="test">ul / li
    <ul class="ulli">
        <li class="cellA">A</li>
        <li class="cellB">B</li>
        <li class="cellC">C</li>
    </ul>
</div>

<br/>

<div class="test">
    display:inline
    <div class="hboxfloat">
        <div class="cellA">A</div>
        <div class="cellB">B</div>
        <div class="cellC">C</div>
    </div>
</div>


</body> 
</html>
  • 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-05-15T04:59:50+00:00Added an answer on May 15, 2026 at 4:59 am

    Why not use what you want?

    <html>
    <head>
    </head>
    <style type="text/css">
    div.test { background-color: #EE9; padding:5px;}
    body { font-family: Arial; }
    
    ul {
        list-style-type:none;
        padding: 0;
        margin: 0;
    }
    
    ul li {
    }
    
    .hboxinline div {
    }
    
    .hboxfloat div {
    }
    
    .cellA {
        background-color:#CCC;
        width:100%;
    }
    .cellB {
        background-color:#DDD;
        min-width:100;
    }
    .cellC {
        background-color:#EEE;
        min-width:200;
    }
    .inlineCell {
        display: table-cell;
    }
    
    </style>
    
    <body>
    A = 100%, b = 100, c = 200
    
    <div class="test">old school table
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td class="cellA">A</td>
            <td class="cellB">B</td>
            <td class="cellC">C</td>
        </tr>
    </table></div>
    
    <br/>
    
    <div class="test">
        float:left
        <div class="hboxinline">
            <div class="cellA inlineCell">A</div>
            <div class="cellB inlineCell">B</div>
            <div class="cellC inlineCell">C</div>
        </div>
    </div>
    
    <br/>
    
    <div class="test">ul / li
        <ul class="ulli">
            <li class="cellA inlineCell">A</li>
            <li class="cellB inlineCell">B</li>
            <li class="cellC inlineCell">C</li>
        </ul>
    </div>
    
    <br/>
    
    <div class="test">
        display:inline
        <div class="hboxfloat">
            <div class="cellA inlineCell">A</div>
            <div class="cellB inlineCell">B</div>
            <div class="cellC inlineCell">C</div>
        </div>
    </div>
    
    
    </body> 
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
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 am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have this code to decode numeric html entities to the UTF8 equivalent character.
I am doing a simple coin flipping experiment for class that involves flipping a
I am trying to render a haml file in a javascript response like so:

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.