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. Underline style

Underline style

Scheduled Pinned Locked Moved General Discussion
underline
4 Posts 2 Posters 978 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.
  • L Offline
    L Offline
    louisdebelle
    wrote on Dec 18, 2016, 1:22 PM last edited by
    #1

    Hey there! Is there a way to change the underline default style?
    Something like the offset (i.e. border bottom) and the thickness (i.e. solid 2px) of the line…
    Thanks!
    L

    1 Reply Last reply
    0
    • A Offline
      A Offline
      arminunruh
      Global Moderator
      wrote on Dec 19, 2016, 9:30 AM last edited by
      #2

      Hey you can use custom css:

      .hello{
      border-bottom: 2px solid black;
      }
      

      for example.
      border-bottom has a different space than "text-decoration:underline".

      L 1 Reply Last reply Dec 20, 2016, 4:52 PM
      0
      • A arminunruh
        Dec 19, 2016, 9:30 AM

        Hey you can use custom css:

        .hello{
        border-bottom: 2px solid black;
        }
        

        for example.
        border-bottom has a different space than "text-decoration:underline".

        L Offline
        L Offline
        louisdebelle
        wrote on Dec 20, 2016, 4:52 PM last edited by louisdebelle Dec 20, 2016, 3:36 PM
        #3

        @arminunruh Thanks, Armin. But how can I implement that in a text? I'm not able to affect any text from the custom CSS…

        1 Reply Last reply
        0
        • A Offline
          A Offline
          arminunruh
          Global Moderator
          wrote on Dec 22, 2016, 8:53 AM last edited by
          #4

          Oh ok so you are using the "underline" button in the text editor i guess.
          Well try this: Create a "text format" of type "character". Choose an underline style for the text format. There are 2 available. Then you can apply that character text format to words in a text in the texteditor via the "formats" dropdown. Maybe that is already enough. If you want to further customise the underline, please use the textformat's HTML class to do your css styling. In "Textformats" every format's html classname is listed. It is basically just the name of the format with an underscore _ before it.

          _.mycharactertextformatname{
          border-bottom: 2px solid pink;
          }
          

          It can be really hard with css to define the space between a word and an underline. You can try to change the line-height property to affect that space.

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

          1/4

          Dec 18, 2016, 1:22 PM


          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
          B
          benjaminmugnier
          21 minutes ago
          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.
          1 out of 4
          • First post
            1/4
            Last post
          0
          • Recent
          • Tags
          • Popular
          • Users
          • Search