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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T08:04:47+00:00 2026-06-17T08:04:47+00:00

I am working on removing tables from my site, and just learning the div

  • 0

I am working on removing tables from my site, and just learning the div tricks involved. My home page currently has a centered table nested in another table. Removing the outer table was a bit tricky for someone just learning non-table methods, but it’s done.

My problem is, the inner table is super-easy to center (“margin:0 auto” in the CSS), but its div equivalent is not. The div will center if I specify an absolute width (such as 640px), but since I’m designing with the user’s font size (not something I specify), I don’t know how wide it will actually be for a given user.

I’ve simplified the home page and have it online (test.html and HoH.css Here is an overview image of test.html.

Sorry for all the links. But with a floaty thing inside another floaty thing, I don’t know what is relevant. The file test.html contains 63 lines of formatted HTML. The 640px hr is there for reference only; it will not be part of the final page.

PS: I’m removing the tables because when I asked for site reviews, the first comment almost everyone had was, “get rid of the damn tables”.

  • 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-17T08:04:48+00:00Added an answer on June 17, 2026 at 8:04 am

    Probably you shouldn’t worry about users font size because all modern browsers zoom whole page, not only font size, and everybody will be happy with your fixed width.

    Also you can use EM values instead of PX, 1em = font size in px. You can change 640px to 40em if you have 16px font size. If someone have for example twice bigger font, he will get twice wider block.

    And if you want css-solution for unknown width block centering, you can use inline-block and text-align:center: http://jsfiddle.net/rBc4T/

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

Sidebar

Related Questions

I'm working on a little helper for adding, editing and removing objects from a
i am currently working on importing data from excel sheet to sql server.i have
I'm working on removing duplicates from a legacy database for a client of mine,
I'm currently working on adding, viewing and removing values in an android database but
I've been spending the past several weeks working on my asp.net mvc site following
I am working on a database that contains 3 tables: A list of companies
I am parsing data from a webpage, and at times the tables have unwanted
I'm new to this DBA thing and I've been tasked with removing duplicates from
I have a task that I am working on that has me stumped. Hoping
I am currently working on a C# WPF project. I have a list which

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.