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

Indent after Line break

Scheduled Pinned Locked Moved General Discussion
7 Posts 2 Posters 817 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.
  • D Offline
    D Offline
    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 Offline
      RichardR Offline
      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 Offline
        D Offline
        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 Offline
          D Offline
          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 Offline
            RichardR Offline
            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 Offline
              D Offline
              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 Offline
                RichardR Offline
                Richard
                Global Moderator
                wrote on last edited by
                #7

                Thanks @danny best of luck for your project! ā­ļø

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