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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:14:45+00:00 2026-05-28T16:14:45+00:00

I have a cell with fixed height and I want the font size of

  • 0

I have a cell with fixed height and I want the font size of the text inside to reduce accordingly with the amount of text inside cell.

UPDATE:

Sorry. But I thought you will understand what is the problem. I’m trying to modify some xslt pattern which used to create PDF document from XML. And I have to make document to print on some blank. Unfortunately I’ve got limited space, and somehow I have to locete data from XML on this space. For convenience I use table. And I have to locate data in cells with fixed height and width. If data longer then I expected cell height increases. I whant somehow avoid it. But I heve to keep all data, so I can’t use wrap. And I thought that it will be cool to do auto resize font-size.

  • 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-28T16:14:46+00:00Added an answer on May 28, 2026 at 4:14 pm

    I find out some interesting way to do it. It is not automatic way to do it but it helps me to resolve my problems.

    <x:variable name="NDSPercent" select="./NDSPercent"/>
    <x:if test="string-length($NDSPercent) &lt; 3">
      <fo:block>
        <x:value-of select="$NDSPercent"/>
      </fo:block>
    </x:if>
    <x:if test="string-length($NDSPercent) &gt; 3">
      <fo:block font-size="8pt">
        <x:value-of select="$NDSPercent"/>
      </fo:block>
    </x:if>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make a container of fixed size that will inside have an
I have a cell with a fixed width and height, let it be 100x100px.
I have an HTML email with a <td> of dynamic height but fixed width.
Let's say I have a table cell with fixed width and height.... and I
Imagine I have a cell that I want to be red if the value
i have one div in this i has tables ,which have fixed height and
I have a table cell with a div that has a height of 3px
I have set up a nice table with fixed height and weight like this:
I have a div inside of a table cell with css value of display:none.
I have a table in a HTML form. It has a fixed height for

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.