Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • 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. Phone space text format

Phone space text format

Scheduled Pinned Locked Moved General Discussion
5 Posts 2 Posters 86 Views 2 Watching
  • 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.
  • W Offline
    W Offline
    wakec
    wrote last edited by wakec
    #1

    Hi Armin!

    Thanks for always being so responsive on here. I have a question about phone spacing for text formats.

    I'm trying to get consistent padding around paragraph style text boxes in my projects, but no matter how I adjust the Phone Space Top and Phone Space Bottom values, my text boxes appear the same on mobile - a bit of extra space on top, none on the bottom. Any idea how to remedy this across an entire text style?

    (had trouble uploading screenshots - see all text boxes after the first one here on mobile for an example)

    1 Reply Last reply
    0
    • arminunruhA Offline
      arminunruhA Offline
      arminunruh
      Global Moderator
      wrote last edited by
      #2

      hey!

      the "space bottom" settings for textformats are the space that is below a paragraph.
      however, if a paragraph is the last one in the text element.
      then it has no space bottom.

      otherwise you'd always have a extra space below a text.

      customizing spacing can be done for example when u right click a text
      image.png

      or when u select a text and do the settings in the sidebar
      6c79735e-f6c5-4bff-8884-eecb42910195-image.png

      so usually, if you only wanted to have different spacing for the texts in your phone layout,
      i would say use a custom phone layout.
      https://laytheme.com/documentation/custom-phone-layouts.html

      but is probably easier to use custom css.

      this for example would change all spacings below text elements in projects:

      body.type-project .type-text{
      margin-bottom: 100px!important;
      }

      add this in:
      lay options -> custom css & html -> custom css for mobile

      1 Reply Last reply
      0
      • W Offline
        W Offline
        wakec
        wrote last edited by
        #3

        This CSS is great, that saves me from having to apply across each project page - is there a way to only apply it to one text style? It messes with other text elements like the page buttons and display text.
        IMG_0643.jpg

        1 Reply Last reply
        0
        • W Offline
          W Offline
          wakec
          wrote last edited by
          #4

          I'm also wondering if it's possible to edit the side margins on mobile as well - I tried

          body.type-project .type-text{
          margin-left: 40px!important;
          }

          body.type-project .type-text{
          width: 285px!important;
          }

          but this only works at one breakpoint.

          1 Reply Last reply
          0
          • arminunruhA Offline
            arminunruhA Offline
            arminunruh
            Global Moderator
            wrote last edited by
            #5

            image.png

            but the margin-left: 40px is applied

            if you dont want the space for some texts,
            right click the text element

            click set html class and id. for class enter:

            nospace

            then instead of the css u use now, use:

            body.type-project .type-text:not(.nospace){
            margin-left: 40px!important;
            }
            
            body.type-project .type-text:not(.nospace){
            width: 285px!important;
            }
            
            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

            Our Web Development company: 100k.studio

            Want to tip me? https://www.paypal.com/paypalme/arminunruh

            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
            F
            fernandol97
            A
            alasdair17
            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