Tech Junkie Blog - Real World Tutorials, Happy Coding!: CSS Stretch And Condense Fonts With font-stretch

Friday, June 18, 2021

CSS Stretch And Condense Fonts With font-stretch

One descriptor of the font property in CSS is the font-stretch descriptor.  This descriptor widens and narrows a font family that has width-variant faces.

The values for widening and narrowing fonts are the following:

  • normal
  • ultra-condensed
  • extra-condensed
  • condensed
  • semi-condensed
  • semi-expanded
  • expanded
  • extra-expanded
  • ultra-expanded
The way you define a font-stretch is the following

      p.uc {font-family: Verdana; font-stretch: ultra-condensed;}


This is how you would use it in your HTML markup

     <p class="uc">Verdana Font ultra-condensed</p>




















Here is the entire HTML markup:

<html>
    <head>
        <style>
            p.uc {font-family: Verdana; font-stretch: ultra-condensed;}
            p.ec {font-family: Verdana; font-stretch: extra-condensed;}
            p.c {font-family: Verdana; font-stretch: condensed;}
            p.sc {font-family: Verdana; font-stretch: semi-condensed;}
            p.se {font-family: Verdana; font-stretch: semi-expanded;}
            p.e {font-family: Verdana; font-stretch: expanded;}
            p.ee {font-family: Verdana; font-stretch: extra-expanded;}
            p.ue {font-family: Verdana; font-stretch: ultra-expanded;}
        </style>
    </head>
    <body>
        <p class="uc">Verdana Font ultra-condensed</p>
        <p class="ec">Verdana Font extra-condensed</p>
        <p class="c">Verdana Font condensed</p>
        <p class="sc">Verdana Font semi-condensed</p>
        <p class="se">Verdana Font semi-expanded</p>
        <p class="e">Verdana Font expanded</p>
        <p class="ee">Verdana Font extra-expanded</p>
        <p class="ue">Verdana Font ultra-expanded</p>
    </body>
</html>

Previous: CSS: Use @font-face To Use Custom Fonts

54 comments:

  1. I m very impress after read your blog for first time your Amazing content I will definitely shared other platform
    QuickBooks Support Phone Number


    ReplyDelete
  2. This is amazing article its really very helpful blog thanks for sharing with us .keep going on always .you can also check our service
    quickbooks support phone number

    ReplyDelete
  3. Found your blog interesting to read. I cant wait to see your post soon. Good Luck for the upcoming update. This article is really very interesting and effective .We have gained our specialization after spending history essay most of our time making ourselves perfect. We provide 100% plagiarism-free Assignment Writing Services. Our assignment helps study help developers are experts write my essay in every subject because of which they provide reliable services all over the world.

    ReplyDelete
  4. This is useful information for me thanks for sharing with us can you get benefit my service




    quickbooks customer service phone number

    ReplyDelete
  5. its is very inspiring article .I loved your article which fulfill all accounting service needed

    Thanks for sharing us .you can also benefit my quickbooks customer service number

    ReplyDelete
  6. This is impressive information thanks for sharing with us .If you are looking accounting software solution Our experts at
    QuickBooks customer service

    ReplyDelete
  7. I appreciate to your blog because this BLOG is different according to other Blogging.
    quickbooks phone number

    ReplyDelete

  8. hello,What do you think about posting the Newsletter to a blog with its own specific link, then mailing a short email with the without it within so people can read it on the blog, similar to how you do with the Recommendations?
    Quickbooks customer service number

    ReplyDelete
  9. u r blog is profesional and Informative and this has helped me with one component.
    Quickbooks customer service

    ReplyDelete
  10. nice blog information is enthralling and inventive..
    Quickbooks Customer Service

    ReplyDelete
  11. Nice to see your post. Wonderful and deep post you’ve written here. That’s truly has added a lot to our knowledge about this topic. Have a more successful day.
    paper editor services - online matlab assignment help - online expository essay topics

    ReplyDelete
  12. Thanks for providing such wonderful ideas with us on your blog.
    Quickbooks Customer Service Number

    ReplyDelete
  13. Way cool, some valid points! I appreciate you making this article available, the rest of the site is also high quality. Have a fun. 카지노사이트

    ReplyDelete
  14. Very good information. Lucky me I recently found your website by accident I have book marked it for later! 카지노사이트

    ReplyDelete
  15. Admiring the time and energy you put into your blog and in depth information you offer. It's good to come across a blog every once in a while that isn't the same outdated rehashed material. Fantastic read! I've bookmarked your site 카지노사이트

    ReplyDelete
  16. Best of luck with your future as your regular reader of your blog I am giving you the appraisal that if you get any ups down you can reach me out at any time. 토토

    ReplyDelete
  17. It's fantastic...When it comes to the carrier, blogging is the finest.
    quickbooks phone number

    ReplyDelete
  18. Awesome issues here. I am very satisfied to look your article.
    Thanks a lot and I’m taking a look forward to contact you.

    Will you please drop me a e-mail?강남안마

    ReplyDelete
  19. These are really fantastic ideas in about blogging. You have touched some fastidious factors here. 파워볼 하는법

    ReplyDelete
  20. Having read this I believed it was really enlightening. I appreciate you spending some time and energy to put this content together. 온라인경마


    ReplyDelete
  21. If you wish for to grow your familiarity simply keep visiting this web page and be updated with the latest news posted here. 파친코사이트

    ReplyDelete
  22. Thanks for sharing this wise and mindful content , keep it up mate 스포츠토토

    ReplyDelete
  23. Thanks for all the tips mentioned in this article! it's always good to read things you have heard before and are implementing.온라인바둑이

    ReplyDelete
  24. Very informative blog article.Really thank you! Really Great.바카라사이트

    ReplyDelete
  25. Excellent information on your blog, thank you for taking the time to share with us.카지노사이트

    ReplyDelete
  26. call us on Quickbooks Phone Number 1866-822-4745 and get effective ways to mend QuickBooks problems.

    ReplyDelete
  27. Our team at Quickbooks Phone Number 1833-244-5865 is responsible to make sure that particular issue should be discarded in the quickest time. Here you will receive permanent solutions to QuickBooks issues.

    ReplyDelete
  28. These errors can cause a serious issue in your work. To eliminate these errors, connect with our team at Quickbooks Phone Number1 877-754-1114.

    ReplyDelete
  29. Immediate help for QuickBooks errors can be availed at Quickbooks Phone Number 1 877-948-5867

    ReplyDelete
  30. quickbooks customer service number 1 866-447-5478 and enjoy quick assistance for QuickBooks troubles

    ReplyDelete
  31. Get quick service for QuickBooks on Quickbooks Phone Number 1 855-756-1077

    ReplyDelete
  32. Get customer support service on time at quickbooks customer service number 1 866-822-4745

    ReplyDelete
  33. https://eseq2022.com/ - 카지노사이트
    https://eseq2022.com/meritcasino/ - 메리트카지노
    https://eseq2022.com/sandscasino/ - 샌즈카지노
    https://eseq2022.com/firstcasino/ - 퍼스트카지노
    https://eseq2022.com/coupon/ - 카지노가입쿠폰
    https://eseq2022.com/livecasino/ - 라이브카지노
    https://eseq2022.com/mobilecasino/ - 모바일카지노

    ReplyDelete
  34. Amazing! This blog looks just like my old one!
    It’s on a totally different topic but it has pretty much the same layout and design. Outstanding choice of colors!
    click me here카지노사이트
    yyy

    ReplyDelete
  35. I do trust all of the ideas you have introduced on your post. They’re very convincing and can definitely work. Nonetheless, the posts are too brief for newbies. Could you please extend them a bit from subsequent time? Thank you for the post.
    토토사이트

    ReplyDelete
  36. Still looking for help with your Quickbooks? Our global, local, and phone customer service will be here to help you 24/7
    quickboks customer service(855) 742-7868.

    ReplyDelete
  37. Avail the right methods to solve QuickBooks errors on Quickbooks Phone NumberQuickbooks Phone Number (877) 762-1118

    ReplyDelete
  38. Looking at this article, I miss the time when I didn't wear a mask. keonhacai Hopefully this corona will end soon. My blog is a blog that mainly posts pictures of daily life before Corona and landscapes at that time. If you want to remember that time again, please visit us.

    ReplyDelete
  39. Like!! I blog quite often and I genuinely thank you for your information. The article has truly peaked my interest. 파워볼게임

    ReplyDelete
  40. Article writing is also a fun, if you know then you can write otherwise it
    is complex to write.Look at my site 경마

    ReplyDelete
  41. I am regular visitor, how are you everybody?
    This article posted at this website is in fact good
    I えがおんカジノ

    ReplyDelete
  42. Well I truly enjoyed reading it. This subject offered by you is very helpful and accurate.카지노사이트

    ReplyDelete
  43. Thanks for sharing with us this important Content. I feel strongly about it and really enjoyed learning more about this topic.
    바카라사이트

    ReplyDelete
  44. Excellent Blog! I would like to thank you for the efforts you have made in writing this post.
    토토사이트

    ReplyDelete
  45. This article is very helpful and interesting too. Keep doing this in future. I will support you.카지노사이트

    ReplyDelete
  46. Keep up the great works guys I’ve included you guys to my personal blogroll 토토

    ReplyDelete
  47. What an interesting article! I'm glad i finally found what i was looking for. 스포츠토토

    ReplyDelete
  48. I m very excited after read your blog . are you troubles in QuickBooks? just call us at

    QuickBooks Customer Service

    ReplyDelete
  49. I’ve been surfing on-line more than three hours lately, but
    I never discovered any fascinating article like
    yours. It is beautiful price enough for me.
    Personally, if all site owners and bloggers made excellent content
    material as you probably did, the web will be a lot more helpful than ever before.
    카지노커뮤니티

    wep

    ReplyDelete
  50. Hi to all, how is everything, I think every one is getting
    more from this web site, and your views are good for new people.Click Me Here온라인슬롯


    4YANGSKIE

    ReplyDelete
  51. I like what you guys are up also. Such clever work and reporting! Carry on the excellent works guys I?|ve incorporated you guys to my blogroll. I think it will improve the value of my website.카지노사이트프로

    ReplyDelete
  52. Very nice article, exactly what I needed.Click Me Here국내경마


    4YAGKIE

    ReplyDelete

Search This Blog