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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:06:53+00:00 2026-05-29T21:06:53+00:00

I would appreciate some help or suggestions with my current project. I have a

  • 0

I would appreciate some help or suggestions with my current project.

I have a simple webpage with an html form where a database is queried and the results return various rows and columns into a table.

What I need the table to do is maximize the size of text in the table cells. The tables CELL size should be even, but the text in the cell be as large as possible.

I’ve tried jQuery BigText and jTextFill, but they both seem to depend on a fixed width/height. As each database query returns various number of rows / columns, I can’t set a fixed width/height as it would not maximize the screen with a small table result.

  • 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-29T21:06:55+00:00Added an answer on May 29, 2026 at 9:06 pm

    Just finished this. It uses jQuery mostly for convenience/compatibility. Turns your HTML table into an expanding width font table.

    http://jsfiddle.net/fnbrb/1/

    Here it is after some more fiddling. Maybe this works better:
    http://jsfiddle.net/xXHLc/11/

    Here is the JS but it requires a few styles as well:

        jQuery("#expandable-font-table TD").each(function()
        {
            // need to set up the DIVs and TDs first
            var jTd = jQuery(this);
            var jDiv = jTd.find("DIV");
            jDiv.width(jTd.width()+"px"); //set the DIV's width to it's parent TD
            jTd.width(jTd.width()+"px"); //set the width of the TD so the table doesn't get confused
        });
    
        jQuery("#expandable-font-table TD DIV").each(function()
        {
            // get each DIV in the table and maximize it's font size
            var jDiv = jQuery(this);
            this.style.visibility="hidden"; // hide while resizing
            var fontSize = jDiv.css("font-size"); // current default font size
            fontSize = fontSize.substring(0,fontSize.length-2);
            // loop while DIV is still within it's original width
            while(this.scrollWidth <= this.clientWidth)
            {
                fontSize++;
                this.style.fontSize = fontSize+"px";
            }
            this.style.fontSize = (fontSize-1)+"px";
            this.style.visibility="visible";        
        });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would appreciate some help with something I working on and have not done
I have a problem finding references to this subject and would appreciate some help.
I would appreciate some suggestions about Help File Authoring (Win32). I know how to
I would really appreciate any suggestions, no matter how simple or complex, to help
I would appreciate some help with an UPDATE statement. I want to update tblOrderHead
I'm pretty new to Python programming and would appreciate some help to a problem
I would really appreciate it if some of you could help optimize my tables,
I would appreciate some guidance on modelling services and operations in WCF. I have
I have a design issue that I would appreciate some input on. I would
I would appreciate help debugging some strange behavior by a multiset container. Occasionally, the

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.