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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:14:50+00:00 2026-05-29T21:14:50+00:00

I like to get my table behave like a block element. I cannot set

  • 0

I like to get my table behave like a block element. I cannot set it to width:100% because it does have some padding, this is going to result 100% + the paddings PX.

Check out: http://jsfiddle.net/LScqQ

Finally the table does what I want, can you see the box-shadow? But the table children don’t like it that way^^

I guess the TH inside the THEAD are the problem.
They do not get the aspected ratio of 66% to 33%.

Help wanted…

  • 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-29T21:14:52+00:00Added an answer on May 29, 2026 at 9:14 pm

    Finally I found the answer by myself.

    Put your table inside a wrapper container and write a CSS rule similar to this:

    //HTML

    <div class="wrapper-table">
    <table>...</table>
    </div>
    

    //CSS

    .wrapper-table > table
    {
        width: 100%;
    }
    

    Now the table will no longer overflow your layout and fits perfectly like most elements do.

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

Sidebar

Related Questions

I have a table full of cells and i would like to get on
I want to get table metadata for all table columns. Like type string(varchar2)/int/float/datetime and
Consider the Oracle emp table. I'd like to get the employees with the top
sometimes i get an error like table is marked as corrupt and shld be
I have a table like this with a computed column: CREATE TABLE PhoneNumbers (
I'd like my UITableView to behave like the the table in the Contacts editor,
I have to print a 5x5 table with alphabets in them, like: <table> <tr>
I'm starting a new project and would like to get my table and column
Good morning I'm trying to get a table row (TR) that must have one
I have a working defined metatable (see below), but I cannot make it behave

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.