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

  • Home
  • SEARCH
  • 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 8914691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T04:47:22+00:00 2026-06-15T04:47:22+00:00

I want to increase the height of my text in html, without increasing its

  • 0

I want to increase the height of my text in html, without increasing its width proportionally. When I increase the font-size, the increase is both in the horizontal as well as vertical direction.


You may think of it like stretching the height of the text, with its width constant. Can I do that using CSS?

  • 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-06-15T04:47:22+00:00Added an answer on June 15, 2026 at 4:47 am

    You can use the scale transform property from CSS3:

    .condensed {
        -webkit-transform: scale(1, 2);
           -moz-transform: scale(1, 2);
            -ms-transform: scale(1, 2);
             -o-transform: scale(1, 2);
                transform: scale(1, 2);
    }​
    

    Because it takes two values, you can scale the height and width of the letters.

    http://jsfiddle.net/Kyle_Sevenoaks/8bT8q/

    As you can see, if you switch the values, the letters are stretched the other way.

    http://jsfiddle.net/Kyle_Sevenoaks/8bT8q/1/

    Be aware that this is a CSS3 property and won’t be supported by all browsers (mostly IE<9).

    Also take in to account that the element will effectively keep its width as i the text were not scaled, so if you have some layout quirks this might be the reason.

    http://jsfiddle.net/Kyle_Sevenoaks/8bT8q/2/

    Here I set the bg color of the scaled <h1> to show the effect.

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

Sidebar

Related Questions

For each click I want to increase the font size. $('#fontplus').each(function('click') { var fs
I am using a UITextField . I want to increase its height but I
I am creating UIProgressView from nib . I want to increase its height but
I want to take a standard UILabel and increase the font size so that
I have a text area that I want to change the font size of
I want to dynamically increase the height of tableview cell according to Content of
All I want to do is increase the height of the individual cells. I've
I want to have text inside a circle. Is it possible to dynamically increase
I want to expand a textarea (increase the height) as long as it has
I want to increase the height of a row in listview when it is

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.