Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Lay Theme Forum

  1. Home
  2. General Discussion
  3. How to set "font-stretch" percentage universally or for text formats?

How to set "font-stretch" percentage universally or for text formats?

Scheduled Pinned Locked Moved General Discussion
4 Posts 3 Posters 68 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    palma
    wrote on last edited by
    #1

    How do I set a certain "font-stretch" percentage universally or for one of the text formats?

    Hi
    I want to use the command "font-stretch: 200%(for exmple)" and apply it for all non serif font happening on the website.

    Where in the css do i set this up? (I don't want to only set this rule for single containers. i also want it in the website title for example)
    (In the text formats interface there are many options given already but not a font stretch)

    Many thanks in advance

    1 Reply Last reply
    0
    • RichardR Offline
      RichardR Offline
      Richard
      Global Moderator
      wrote on last edited by
      #2

      Dear @palma

      This is possible thanks to each 'Text Format' also coming with a Custom Class. For example the default text format can be targeted using its Class:

      ._default{
      //insert desired CSS here -
      }
      

      Screen Shot 2021-04-22 at 2.39.29 PM.png

      Custom CSS can be applied to the Text Format of your choice via:

      Lay Options > Custom CSS & HTML > Custom CSS >

      Or

      Customize > CSS

      Say you have a Text Format Called Stretch with the Custom Class; 'font-stretch':

      .font-stretch{
      font-stretch: expanded;
      }
      

      https://www.w3schools.com/cssref/css3_pr_font-stretch.asp

      Then all text across your site with this text format will also be given the desired CSS too.


      Hope this helps @palma & have a lovely day, thank you for using Lay theme!

      Sincerely
      Richard

      B 1 Reply Last reply
      0
      • RichardR Richard

        Dear @palma

        This is possible thanks to each 'Text Format' also coming with a Custom Class. For example the default text format can be targeted using its Class:

        ._default{
        //insert desired CSS here -
        }
        

        Screen Shot 2021-04-22 at 2.39.29 PM.png

        Custom CSS can be applied to the Text Format of your choice via:

        Lay Options > Custom CSS & HTML > Custom CSS >

        Or

        Customize > CSS

        Say you have a Text Format Called Stretch with the Custom Class; 'font-stretch':

        .font-stretch{
        font-stretch: expanded;
        }
        

        https://www.w3schools.com/cssref/css3_pr_font-stretch.asp

        Then all text across your site with this text format will also be given the desired CSS too.


        Hope this helps @palma & have a lovely day, thank you for using Lay theme!

        Sincerely
        Richard

        B Offline
        B Offline
        barbarama
        wrote on last edited by
        #3

        @Richard
        I have a similar question to this, I want to have a Text-Format with Outlined-Text.

        I added this to the Custom-CSS:
        .Default{
        -webkit-text-fill-color: #fd67eb;
        -webkit-text-stroke-width: 1px;
        -webkit-text-stroke-color: black;}

        but it does not work...
        Can you help me with this?

        1 Reply Last reply
        0
        • RichardR Offline
          RichardR Offline
          Richard
          Global Moderator
          wrote on last edited by
          #4

          Dear @barbarama

          "Can you help me with this?"

          Sure! šŸŒ

          If you are able to post a link to your website i can make sure.
          Here is a test on my Lay Theme site with your code.

          The standard "default" format has a little " _ " underhyphen before it ( _Default ), I was wondering if this is the case with you as well?
          Screen Shot 2021-06-03 at 4.47.39 PM.png

          When i set the correct format & changed the code to:

          ._Default{
          -webkit-text-fill-color: #fd67eb;
          -webkit-text-stroke-width: 1px;
          -webkit-text-stroke-color: black;}
          

          I got the intended result:
          Screen Shot 2021-06-03 at 4.47.47 PM.png


          Hope this helps @barbarama & talk soon! best wishes 🌼

          Sincerely
          Richard
          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          I also code custom websites or custom Lay features.
          šŸ’æ Email me here: šŸ’æ
          info@laytheme.com

          Before you post:
          1. When using a WordPress Cache plugin, disable it or clear your cache.
          2. Update Lay Theme and all Lay Theme Addons
          3. Disable all Plugins
          4. Go to Lay Options → Custom CSS & HTML, click "Turn Off All Custom Code", click "Save Changes"

          This often solves issues you might run into

          When you post:
          1. Post a link to where the problem is
          2. Does the problem happen on Chrome, Firefox, Safari or iPhone or Android?
          3. If the problem is difficult to explain, post screenshots / link to a video to explain it
          Online Users
          arminunruhA
          arminunruh
          J
          joackim
          Forgot your key, lost your files, need a previous Lay Theme or Addon version? Go to www.laykeymanager.com
          laytheme.com
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search