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 562 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
    W
    wakec
    wrote on 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
      arminunruhA
      arminunruh
      Global Moderator
      wrote on 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
        W
        wakec
        wrote on 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
          W
          wakec
          wrote on 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
            arminunruhA
            arminunruh
            Global Moderator
            wrote on 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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            Online Users
            I
            itsbadjujuju
            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