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

  • Home
  • SEARCH
  • 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 9246687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:33:00+00:00 2026-06-18T09:33:00+00:00

I have a responsive table (set at 100% width within variable div width) in

  • 0

I have a responsive table (set at 100% width within variable div width) in which I’m trying to ‘reset’ the colspan so that the next table row does not inherit the fixed width tds.

In my example the numbers td (1 to 7) have a fixed width of 40px which is given by the class ‘position’. The next table row has two buttons, which should be 50% each. I can do this by adding the half class in the example, but this undoes the width of the ‘position’ class. As I have 8 tds I give the buttons each a colspan of 4, but the last button td inherits the width of the 4 ‘position’ classes, so it’s set at 160px fixed.. is it possible to clear the colspan and the fixed width of it?

The numbers could depend (1-7) so adding a colspan with equal number of the numbers would not be a good solution.

Demo

  • 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-18T09:33:01+00:00Added an answer on June 18, 2026 at 9:33 am

    As I said in the comment

    “The code is working good. But the first td has biggest width than others. colspan="4" is selecting first 4 tds (name, 1, 2, 3) and the second colspan is selecting other 4 tds (4, 5, 6, 7).”

    This can not work with td. Try this way if you want.

    HTML

    <tr>
        <td colspan="8">
            <div class="half"><a href="#" class="button">Button one<a/></div>
            <div class="half"><a href="#" class="button">Button two<a/></div>
        </td>
    </tr>
    

    CSS

    .half{
        float: left;
        width: 50%;
    }
    

    DEMO: http://jsfiddle.net/enve/zt5W9/2/

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

Sidebar

Related Questions

I'm trying to create a responsive gui, which basically means that I have an
I have a categories table which is set up to allow an infinite number
I have a table that has a field of type uniqueidentifier which is going
I have a table Survey_Data_Response that is populated with an 'insert into' statement from
I am trying to build a responsive email template but have run into some
I have a 3 column layout, and am trying to make it more responsive
I have a web application that relies on a MySQL database, for which I
I have just started my HTTPREQUEST application and I am trying to set up
I have a table, jos_ezrealty that has address, city, state fields and declat &
I have a table that I cannot get to size correctly. The table populates

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.