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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:54:50+00:00 2026-06-01T20:54:50+00:00

I have four divs that are each one column tables with many rows. They

  • 0

I have four divs that are each one column tables with many rows. They are all floated left with relative positioning and so are all in a row. I want to vertically center them within the div “container”. How can I do this?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<style type="text/css">
.titlefont{
font-family:"Lucida Console", Monaco, monospace;    
}

div#saucelistdiv{
float:left;
    width:auto;
    margin:10px;
    vertical-align:middle;
    height:auto;
}
div#meatlistdiv{
    float:left;
    width:auto;
    margin:10px;
    vertical-align:middle;
    height:auto;
}
div#container{
    height:600px;
    border:2px solid red;
    width:auto;
}
#grainlistdiv{
float:left;
    width:auto;
    margin:10px;
    vertical-align:middle;
    height:auto;
}
div#veggielistdiv{
    float:left;
    width:auto;
    margin:10px;
    vertical-align:middle;
    height:auto;
}
#tablelist{
    border:2px solid;
}
</style>
<body>

<center>
<div id="container">
<div id="saucelistdiv"><table id="tablelist">
    <span class="titlefont">SAUCES</span>
    <tr><td><input type="radio" name="rbbase" value="Pizza Sauce" checked="checked" />Pizza Sauce</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Cheese Sauce" />Cheese Sauce</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Barbecue Sauce" />Barbecue Sauce</td></tr>



    <tr><td><input type="radio" name="rbbase" value="Salsa" />Salsa</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Alfredo Sauce" />Alfredo Sauce</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Taco Sauce" />Taco Sauce</td></tr>



    <tr><td><input type="radio" name="rbbase" value="Tzatziki (Cucumber) Sauce" />Tzatziki (Cucumber) Sauce</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Chicken Gravy" />Chicken Gravy</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Beef Gravy" />Beef Gravy</td></tr>



    <tr><td><input type="radio" name="rbbase" value="Ranch Dressing" />Ranch Dressing</td></tr>
    <tr><td><input type="radio" name="rbbase" value="1000 Island Dressing" />1000 Island Dressing</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Parmesan Peppercorn Dressing" />Parmesan Peppercorn Dressing</td></tr>



    <tr><td><input type="radio" name="rbbase" value="Spaghetti Sauce" />Spaghetti Sauce</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Chili" />Chili</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Syrup" />Syrup</td></tr>



    <tr><td><input type="radio" name="rbbase" value="Garlic Butter" />Garlic Butter</td></tr>
    <tr><td><input type="radio" name="rbbase" value="Mayonnaise" />Mayonnaise</td></tr>





    </table>
    </div>

<div id="meatlistdiv">
<span class="titlefont">MEATS</span>
    <table class="center" id="tablelist">



      <tr><td><input type="checkbox" name="cbing" value="Sausage" />Sausage<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Pepperoni" />Pepperoni<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Diced Ham" />Diced Ham<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Beef" />Beef<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Bacon" />Bacon<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Lamb" />Lamb<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Bratwurst" />Bratwurst<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Chicken" />Chicken<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Shrimp" />Shrimp<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Crab" />Crab<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Seasoned Beef" />Seasoned Beef<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Corned Beef" />Corned Beef<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Turkey" />Turkey<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Eggs" />Eggs<br /></td></tr>




    </table>
  </div>

  <div id="grainlistdiv">
  <span class="titlefont">GRAINS</span>
    <table class="center" id="tablelist">
      <tr><td><input type="checkbox" name="cbing" value="Elbow Macaroni" />Elbow Macaroni<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Spaghetti Noodles" />Spaghetti Noodles<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Oyster Crackers" />Oyster Crackers<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Goldfish" />Goldfish<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Mini Pancakes" />Mini Pancakes<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Pretzels" />Pretzels<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Stuffing" />Stuffing<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Taco Chips" />Taco Chips<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Ramen Noodles" />Ramen Noodles<br /></td></tr>
    </table>
  </div>

    <div id="veggielistdiv">
    <span class="titlefont">VEGGIES/OTHER</span>
    <table class="center" id="tablelist">
      <tr><td><input type="checkbox" name="cbing" value="Lettuce" />Lettuce<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Tomatoes" />Tomatoes<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Onions" />Onions<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Green Peppers" />Green Peppers<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Green Olives" />Green Olives<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Black Olives" />Black Olives<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Pineapple" />Pineapple<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Sauerkraut" />Sauerkraut<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Broccoli" />Broccoli<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Cauliflower" />Cauliflower<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Jalapeno Peppers" />Jalapeno Peppers<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Pickles" />Pickles<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Cucumbers" />Cucumbers<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Carrots" />Carrots<br /></td></tr>
      <tr><td><input type="checkbox" name="cbing" value="Mushrooms" />Mushrooms<br /></td></tr>
    </table>
  </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-06-01T20:54:52+00:00Added an answer on June 1, 2026 at 8:54 pm

    I believe that if you change your float:left; to display:inline-block; then you will get the effect that you are looking for.

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

Sidebar

Related Questions

I have four models that are related to one another, the way I have
I have four divs in a row and whichever one you click on, the
I have a four divs all set display:none and on document.ready i am showing
I have four DB tables in an Oracle database that need to be rewritten/refreshed
I have four divs that are draggable. And a div where I drop the
In jQuery: Scenario ** - I have four Divs that have hover effects. -
I have 5 divs with ids; #one, #two, #three, #four and #five. I have
I have four divs on a popup and each click makes a ajax call
So I'm designing a Wordpress theme and I have four divs (380x400) that I'm
I have four tables containing exactly the same columns, and want to create a

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.