table format using css

Posted on 2014-11-02
Last Modified: 2014-11-05
I'm working on a form that prints out as a PDF.  I'm using css to style the page.  In the screenshot provided, what is the best way to use css to format the top table and middle table?

The top table has no border around the top left cell and the text needs to be aligned left top.  The middle table has a bunch of content within each table cell, which would be a nested table?

Thanks for any help!
Question by:-Dman100-
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 25

Accepted Solution

Kyle Hamilton earned 250 total points
ID: 40418306
mmm. fun.

I've had the great (mis)fortune of having to make one of these :)

If you "print" (to a printer, or pdf, or whatever output device), you can see that it will look like a regular paper form. It uses a print media query to do that.

The idea was to use a combination of relative and absolute div positioning which you can see if you view the referenced CSS file. It was quite tedious to put together, but does accomplish the task.

If you need any explaining, please let me know.
LVL 58

Assisted Solution

Gary earned 250 total points
ID: 40418324
Something like:

        <td>Primary Applicant</td>

Open in new window

table {
table tr:first-child td:first-child {
    border:1px solid black;

Open in new window


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction A frequently asked question goes something like this:  "I am running a long process in the background and I want to alert my client when the process finishes.  How can I send a message to the browser?"  Unfortunately, the short answer…
CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
In this Micro Tutorial users will learn how to embed custom fonts into websites using @font-face in CSS Select a font: Ensure the EULA allows you to use @font-face: Download the font: Get the browser-compatible files you need: Edit your CSS       - Name …
In this tutorial viewers will learn how to style rounded corners for elements in CSS using the border-radius property Begin with a normal styled element such as a div: To style all four corners of the div to be the same degree of roundness, use the …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question