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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:37:40+00:00 2026-05-15T23:37:40+00:00

My goal is to generate a html file with tables and export them into

  • 0

My goal is to generate a html file with tables and export them into pdf.
Unfortunately I cant get the table to act like I want.

One part of the table should display a timescale with days on the lowest row, weeks,months and years are in the rows above and have a pre-calculated colspan.

Only the s for the days have a width given with CSS (style="width:...").

The problem is that the width is totally ignored, so fields with days from 1-9 are only half as width than the others. And in follow, because the fields above size automatically because they have no width given, their size is also wrong.

alt text http://img217.imageshack.us/img217/6617/scale1x.jpg

Heres the source that is generated:
http://pastebin.com/JyiqhSzs

What we tried so far:

  • used non css (width="")
  • give the other field also an calculated width (the colspan value multiplied with the width of a day)

Also set style="table-layout:fixed;" for the table but that has no effect.

So I don’t know how to get the table to have the width I want to have?

  • 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-15T23:37:41+00:00Added an answer on May 15, 2026 at 11:37 pm

    Instead of width: 23px use min-width: 23px. It worked for IE8 and FireFox. I have not yet figured out a magic formula for IE7 to not narrow the single digit days (working on it). I do know that the table-layout: fixed is not needed, and for sure will cause issues with any IE7 display that may work.

    Also, if you always want them to be the same size, you might consider using em sizing so that if text size changes, your table scales up/down with it proportionally. I don’t know all your needs, but just a suggestion to look into.

    Edit: More cross browser solution. IE6 and 7 need to have all the numbers in the “days” cells wrapped with a div and then instead of styling the td with any kind of width, style that div with a width: 23px not min-width: 23px.

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

Sidebar

Related Questions

My goal is pretty straightforward: I want to generate an HTML table with the
The goal is to generate some html reports and html emails using templates hosted
My goal is to generate a directory of static html, javascript, and image files
My main goal is to generate an XML file that can be downloaded. The
The goal is to generate an NSString chars in length and assign each string
Goal: Create Photomosaics programmatically using .NET and C#. Main reason I'd like to do
My Goal I would like to have a main processing thread (non GUI), and
My goal is to maintain a web file server separately from my main ASP.NET
My eventual goal is to generate tag links for blog posts, the tags relating
My goal is to use a WCF Service to accept some parameters, generate and

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.