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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T03:12:00+00:00 2026-06-09T03:12:00+00:00

i am trying to make it such that the code will produce the below

  • 0

i am trying to make it such that the code will produce the below image, but it seems something is off with my table widths…any fixes? I’m still a n00b at HTML, thanks a million!! will upvote and accept the solution that fix my problem 100%

Image of expected result

Code For table:

     <table  style="table-layout: fixed width="100%" cellspacing="0" cellpadding="2"><tr>

        <td colspan="1" width="250"></td>
        <td colspan="2" width="10"><span>Postanschrift</span></td>
    <td colspan="3" width="5"><input type="radio" value="F" <span>&#160;Nein&#160;</span></td>
    <td colspan="2" width="5"><input type="radio" value="F" <span>&#160;Ja</span></td>
        <td colspan="1" width="15"></td>
    <td colspan="2" width="10"><span>SMS / MMS</span></td>
    <td colspan="3" width="5"><input type="radio" value="F" <span>&#160;Nein&#160;</span></td>
    <td colspan="2" width="5"><input type="radio" value="F" <span>&#160;Ja</span></td>

 </table>
 <table  style="table-layout: fixed width="100%" cellspacing="0" cellpadding="2"><tr>

        <td colspan="1" width="250"></td>
        <td colspan="2" width="10"><span>Telefon</span></td>
    <td colspan="3" width="5"><input type="radio" value="F" <span>&#160;Nein&#160;</span></td>
    <td colspan="2" width="5"><input type="radio" value="F" <span>&#160;Ja</span></td>
        <td colspan="1" width="15"></td>
    <td colspan="2" width="10"><span>E-Mail</span></td>
    <td colspan="3" width="5"><input type="radio" value="F" <span>&#160;Nein&#160;</span></td>
    <td colspan="2" width="5"><input type="radio" value="F" <span>&#160;Ja</span></td>          
 </table>

This is the image of the result of the expected code…pretty messed up :Senter image description here

As you can see, the indentation before Postanschrift and Telefon works just fine …however the later column widths are no longer fixed like in the image of the ‘expected result’

EDIT 1: Using WebDevNewbie’s code snippet, here’s the result:

enter image description here

  • 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-09T03:12:02+00:00Added an answer on June 9, 2026 at 3:12 am

    Style tag in <table> was not complete, and making your table fixed with your widths is what is crushing it all together. Removing the table-layout: fixed solved it for the most part, and I also had to widen the SMS / MMS <td> due to the spaces, it would push them to different lines.

    Changing the widths on all of them would be a good bet.

    <table style="width:100%; table-layout: fixed;" cellspacing="0" cellpadding="2">
        <tr>
            <td width="100%" style="background-color: #EEEEEE;"></td>        
            <td width="100px">
                <span>Postanschrift</span>
            </td>
            <td width="60px" style="background-color: #EEEEEE;">
                <input type="radio" value="F"/>
                <span>&#160;Nein&#160;</span>
            </td>
            <td width="40px">
                <input type="radio" value="F"/>
                <span>&#160;Ja</span>
            </td>
            <td width="30px" style="background-color: #EEEEEE;"></td>
            <td width="100px">
                <span>SMS / MMS</span>
            </td>
            <td width="60px" style="background-color: #EEEEEE;">
                <input type="radio" value="F"/>
                <span>&#160;Nein&#160;</span>
            </td>
            <td width="45px">
                <input type="radio" value="F"/>
                <span>&#160;Ja</span>
            </td>
        </tr>
    </table>
    

    EDIT: Also, all the colspans weren’t needed in this case. Those are if you want a <td> to span more than one column, which isn’t needed here. There is also an empty cell that doesn’t need to be there…

    EDIT: I see why you are using that blank cell, a spacer. I have update the table, the first cell has a width of 100% now, this will allow for expanding, and I have increased the other widths..

    EDIT: Closed the <input> tags, and formatted for readability..

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

Sidebar

Related Questions

i am trying to make the preloading work in such a way that the
I'm trying to make a regex, that will return list words that begin with
Okay, so I'm trying to make a method that will return the level order
I have some code that I am trying to make it play nicely with
I want to make application such that,when user opens application,it will show a google-map
In this program I am trying to make, I have an expression (such as
I'm trying make an entity with doctrine that has three associations with other entities
Trying to make this jQuery filter that uses .find case-insensitive. For example, when the
Trying to make a small countdown timer in my app but it's not working.
I'm trying to make a textview that scales the contents so that it all

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.