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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:54:00+00:00 2026-06-10T19:54:00+00:00

Here is the markup. I want to add a vertical line between the two

  • 0

Here is the markup. I want to add a vertical line between the two tables. I don’t want to use images here. I need a pure html solution for this.

<div>
    <table width="50%" style="float:left">
        <tr>
            <td><p class="dotted">row 1, cell 1</p></td>
            <td><p class="dotted">row 1, cell 2</p></td>
        </tr>
        <tr>
            <td><p class="dotted">row 2, cell 1</p></td>
            <td><p class="dotted">row 2, cell 2</p></td>
        </tr>
    </table>

    <table width="50%" style="float:left">
        <tr>
            <td><p class="dotted">row 1, cell 1</p></td>
            <td><p class="dotted">row 1, cell 2</p></td>
        </tr>
        <tr>
            <td><p class="dotted">row 2, cell 1</p></td>
            <td><p class="dotted">row 2, cell 2</p></td>
        </tr>
    </table>
</div>

Something like this image enter image description here

Here is the fiddle http://jsfiddle.net/a2cR8/

  • 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-10T19:54:02+00:00Added an answer on June 10, 2026 at 7:54 pm

    Check this fiddle here. Hope it helps.

    CSS

    .parentTable{
        width: 100%;
        border: 1px solid #b4b4b4;
    }
    .parentTable tr td{
        padding: 5px 30px;
    }
    .parentTable tr td.header{
        background: #265ca5;
    }
    .parentTable tr td.spec{
        width: 1px;
        padding: 0;
        border: none;
        background: #b4b4b4;
    }
    .childTable{
        width: 100%;
    }
    .childTable tr td{
        border-bottom: 1px dashed;
    }
    .childTable tr:last-child td{
        border: none;
    }
    

    HTML

    <table class="parentTable">
    <tr>
        <td class="header" colspan="3">&nbsp;</td>
    </tr>
    <tr>
        <td>
            <table class="childTable">
                <tr>
                    <td>
                        <p class=" entityHeader">Study Title</p>
                    </td>
                    <td>
                        <p>row 1, cell 2</p>
                    </td>
                </tr>
                <tr>
                    <td><p class=" entityHeader">Start Date</p></td>
                    <td><p >row 2, cell 2</p></td>
                </tr>
            </table>
        </td>
        <td class="spec">
            &nbsp;
        </td>
        <td>
            <table class="childTable">
                <tr>
                    <td ><p class=" entityHeader">Project Type</p></td>
                    <td><p >row 1, cell 2</p></td>
                </tr>
                <tr>
                    <td><p class=" entityHeader">Project Subtype</p></td>
                    <td><p >row 2, cell 2</p></td>
                </tr>
            </table>
        </td>
    </tr>
    

    ​

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

Sidebar

Related Questions

I want to add star-rating to my website. Here is my cshtml markup @{
Okay, so I'm designing this site. Here's the HTML markup of this simple element:
I have the following markup. @(Html.Telerik().Grid(Model) .Name(Grid) .DataKeys(keys => keys.Add(key => key.Id)) .Columns(columns =>
I want to add a column containing images in each cell of a table
I have the following HTML markup <div id=contents> <div id=content_nav> something goes here </div>
My URLs look like this: http://www.site.co.uk/en-us/aboutus/abgroup.aspx http://www.site.co.uk/en-us/casestudies.aspx Here is the menu HTML markup <ul
Here's my markup: Name: <asp:TextBox ID=txtNewName runat=server ValidationGroup=NewDepartmentValidationGroup /> <asp:RequiredFieldValidator ID=vldtxtNewName runat=server ControlToValidate=txtNewName ErrorMessage=Required
Can I do this without Javascript? Here is the mock markup.. <div id=parent> <div
Here's the view: @if (stream.StreamSourceId == 1) { <img class=source src=@Url.Content(~/Public/assets/images/own3dlogo.png) alt= /> }
Using jquery I want to add an id to a series of divs, but

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.