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-
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

CSS3 Custom checkboxes This article shows how to style the checkbox form element using only CSS. Works in: Chrome, FF, Safari, Opera, IE9+ Uses modernizr.js to check for :checked pseudo class, falling back to plain old checkboxes (IE8 and bel…
When applying CSS to your HTML, there are many different ways to select which element(s) the CSS applies to.  Some of these selectors are more commonly known and used than others - Here are the more common ones: #X - Matches an ID of X .X - Matche…
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now