Thanks for the reply laranz. I think i figured it out now though. The titles of the text elements are <h3> but i found that i needed to add this class:
<h3 class=”wpb_heading wpb_text_heading”>This is the title</h3>
to get the particular padding for the underline.
Cheers