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. Indent after Line break

Indent after Line break

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 1.2k Views 1 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.
  • D
    D
    danny
    wrote on last edited by
    #1

    Dear @Richard,

    I already have an indent (-2 em) for a text style that works perfectly. Is it possible to have a negative indent as well for line breaks?

    https://www.marthekrueger.com/text-2/

    This is the custom CSS that I'm using for the negative indent of a new paragraph.

    Many thanks and kind regards.

    Daniel

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

      Dear Daniel

      @danny

      I understand indenting with text, however because a line break is just white space, would we see the results of it?

      I'm a little confused today! 🌝 You know what i mean?
      Screen Shot 2022-02-11 at 12.11.33 PM.png

      Im sure we can achieve what you have in mind, i just need a little more info.


      Talk soon 🌻
      Richard
      1 Reply Last reply
      0
      • D
        D
        danny
        wrote on last edited by
        #3

        Dear @Richard

        thanks so much for helping out. So hopefully this screenshot will explain it better: I would like to archive a negative indent within a text (after a line break). What now happens is, that if I do a line break, there is no negative indent.

        Bildschirmfoto 2022-02-15 um 17.53.46.png

        Hope this explains it well enough?

        Thanks again and have wonderfull day,
        Daniel

        1 Reply Last reply
        0
        • D
          D
          danny
          wrote on last edited by
          #4

          Dear @Richard,

          did you had maybe time for this one?
          Thanks and best wishes
          Daniel

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

            Dear Daniel

            @danny

            This one is likely not possible from me sorry as Forum moderator and would require some further coding. Im sure it;s possible but would take some time to research

            Something like "Apply CSS to First Line after Linebreak <br>"

            https://stackoverflow.com/questions/899252/can-you-target-br-with-css

            https://www.codegrepper.com/code-examples/javascript/jquery+get+first+word+before+line+break

            https://www.w3schools.com/csSref/sel_firstline.asp


            Best
            Richard
            1 Reply Last reply
            0
            • D
              D
              danny
              wrote on last edited by
              #6

              Sure I totally understand. Thanks anyways for the helpful links. Have a good day. All best, Daniel

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

                Thanks @danny best of luck for your project! ⭐️

                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
                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