Re: Form label with mandatory asterisk makes the line wrap misaligned...

Christine_LeBla
Level 3

Form label with mandatory asterisk makes the line wrap misaligned...

Hi,

 

Form field label made mandatory (asterisk icon) causes the 3rd line to misalign. First and second line wrap with correct indentation. However, 3rd wrapped line text returns back under the asterisk and not indented like the top 2 lines, and does not look good.

iPhone 13 causes this effect. Through browser tools I have created a new media query for this to target specifically 300px - 359px.

 

Can you please advise how I can clean this up?

I have tried this:

.mktoLabel.mktoHasWidth {
display: block;
margin: 0;
padding-left: 1em;
text-indent: -1em;
}

 

I do not see how I can possibly apply any <span> when HTML is not readily available for these form labels.

Please advise.

Thank you.

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator

Re: Form label with mandatory asterisk makes the line wrap misaligned...

It’s not possible to help without a link to your page w/form.

Christine_LeBla
Level 3

Re: Form label with mandatory asterisk makes the line wrap misaligned...

Screenshot. It's the asterisk on mandatory fields that poses this challenge. How can 3rd line and other subsequent lines get aligned correctly to follow the indentation that first and second line share:

 

odd-line-wrap.JPG

SanfordWhiteman
Level 10 - Community Moderator

Re: Form label with mandatory asterisk makes the line wrap misaligned...

A link to your page is necessary to suggest CSS edits.

Dave_Roberts
Level 10

Re: Form label with mandatory asterisk makes the line wrap misaligned...

You should be able to edit the HTML of any label using the native Marketo form editor. 

For most fields, you can click the pencil icon next to the Label input at the top of the Properties list (far left). Then click the HTML icon on the toolbar to get at the HTML behind the label.

Dave_Roberts_0-1729866335985.png

 

For "checkboxes" field types, there are two places to edit the HTML for a label. The label above/left of the field (yellow) can be edited in the same way shown above. The label to the right of the input (green) can be edited using the "Values" link: Edit (x)  which will pop up a modal window where you can edit the "Display Value" for all the checkboxes. This input will also accept HTML, and you may find it easier to click the "Advanced Editor" in the bottom left to show a text-based GUI when editing HTML in the Display Values.

Dave_Roberts_1-1729866392664.png

 

 

Disha_Goyal6
Level 4

Re: Form label with mandatory asterisk makes the line wrap misaligned...

Hi @Christine_LeBla, please share the link of the page where you are facing this issue.