How to stop underline at the same place as the text?

Hi,

I am trying to make the lines underneath the text to stop where the text stops. See example.
I just can’t figure it out. Anyone knows how to do this?

(PS: why is my hero title not alligned in the middle, it is a bit off the left)

Thank you!

https://preview.webflow.com/preview/veilig-werken-op-de-vluchtstrook?utm_medium=preview_link&utm_source=designer&utm_content=veilig-werken-op-de-vluchtstrook&preview=bde62d78d3bb9d718f77980aedc2ebfc&workflow=preview

Unless I’m viewing your intention incorrectly, I recommend building this in a slightly different way.

  1. Remove your current underline divs
  2. Select your text and change the display mode to “inline block” (see screen grab 1)
  3. Change the bottom rule of this block to height = 4px and color orange (screen grab 2)
  4. You can use the parent div position the type to center or some other alignment


1 Like