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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T19:06:34+00:00 2026-05-31T19:06:34+00:00

I’m trying to create a form that clients would complete via the web, so

  • 0

I’m trying to create a form that clients would complete via the web, so far I’ve resorted to using various tables butted up against each other to get the view I’m looking for, one of the issues is that when the tables are next to each other the borders appear twice as thick.

I think I could probably turn certain borders on and off but this would be a pain to manage, is there a better way I should be doing this?

My form looks something like this (jsfiddle at http://jsfiddle.net/5AXKa/)

<html>
<head>
<style type="text/css">
    #form table
    { 

        width:100%;
    }

    td
    {
        border: 1px solid black;

    }

    table
    {
        border:1px solid black;
    }

    #form
    {
        width:1000px;
        /*border:1px solid black;*/
    }

    .field
    {
        border-right:none;
    }

    table, tr, td
    {
        border-collapse:collapse;
    }

    #Logo
    {
        width:30%;
    }

    #TestName
    {
        width:40%;
    }

    #TestNumber
    {
        width:30%;
    }

    #heading
    {
        height:70px;
    }

    .title
    {
        text-align:center;
    }

    .Data
    {
        border-left:none;
        border-right:none;
    }

</style>
</head>
<body>
    <div id="form">

        <table>
            <tr id="heading">
                <td id="Logo">LOGO GOES HERE</td>
                <td id="TestName">TEST NAME</td>
                <td id="TestNumber">TEST NUMBER</td>
            </tr>   
        </table>

        <table id="CommonData">
            <tr>
                <td class="field">CLIENT:-</td>
                <td class="data"></td>
                <td class="field">SITE:-</td>
                <td class="data"></td>
                <td class="field">Contract NO:-</td>
                <td class="data"></td>
            </tr>
            <tr>
                <td class="field">DUTY:-</td>
                <td class="data"></td>
                <td class="field">TAG No:-</td>
                <td class="data"></td>
                <td class="field">Loop No:-</td>
                <td class="data"></td>
            </tr>
            <tr>
                <td class="field">SYSTEM No:-</td>
                <td class="data"></td>
                <td class="field">SYSTEM REF:-</td>
                <td class="data"></td>
                <td class="field">DWG No:-</td>
                <td class="data"></td>
            </tr>
            <tr>
                <td class="field">CTP No:-</td>
                <td class="data"></td>
                <td colspan="4"></td>
            </tr>       
        </table>
        <table>
            <tr class="title">
                <td>INSTRUMENT / APPLIANCE</td>
            </tr>
        </table>
        <table style="float:left;width:50%">
            <tr>
                <td colspan="2">INSTRUMENT DETAILS:</td>
            </tr>
            <tr>
                <td>MANUFACTURER</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>SERIAL No:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>       
            <tr>
                <td>SIZE:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>SERVICE DATA SHEET REF:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>POWER SUPPLY:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>MODEL NO:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>IP RATING:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>RANGE/SPAN</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
        </table>
        <table style="float:right; width:50%">
            <tr>
                <td>INSTRUMENT TYPE</td>
                <td>TICK BOX</td>
            </tr>
            <tr>
                <td>PROXIMITY SWITCH</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>LIMIT SWITCH</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>FLOAT SWITCH</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>ULTRASONIC</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>THERMOCOUPLE</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>PRESSURE SWITCH</td>
                <td><input type="text" name="blah" style="width:100%"/></td>f
            </tr>
            <tr>
                <td>TEMPERATURE SWITCH</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>FLOW SWITCH</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>CONDUCITIVITY METER</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>TURBIDITY METER</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>CHEMICAL RESIDUAL ANALYSER</td>
                <td><input type="text" name="blah" style="width:100%"/></td>    
            </tr>
            <tr>
                <td>FLOW METER</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>PH METER</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>   
        </table>
        <table>
            <tr class="title">
                <td>MONITOR / CONVERTER</td>
            </tr>
        <table>
        <table>
            <tr>
                <td>PLANT UNIT:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
                <td>INSTRUMENT TYPE:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>SERIAL No:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
                <td>SPAN:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
            <tr>
                <td>POWER SUPPLY:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
                <td>OTHER:-</td>
                <td><input type="text" name="blah" style="width:100%"/></td>
            </tr>
        <table> 
</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-05-31T19:06:35+00:00Added an answer on May 31, 2026 at 7:06 pm

    Simplify your table structure. If possible, use a single table, with one item on one row—there is normally no need to simulate printed forms (where you try to put everything on one sheet of paper) when designing a web form. Don’t use all uppercase, and put heading-like items in bold to clarify the structure of the form. Do not set widths for cells—it is part of the basic benefits of using tables that you can leave width allocation to browsers.

    Your problems with borders are just one symptom of too complicated a design. When using a single table, adjacent browsers collapse when you just set cellspacing=0 in the table tag or border-collapse: collapse in CSS.

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

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm trying to create an if statement in PHP that prevents a single post
Basically, what I'm trying to create is a page of div tags, each has
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I am trying to understand how to use SyndicationItem to display feed which is
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I would like to count the length of a string with PHP. The string
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace

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.