Remove left Margin from Textbox's Label when having an Icon

Hi, I'm using a TextBoxComponent and prepended an Icon with the addIcon() method. However, since I want to display always the label of the textbox by using the floatLabelType="Always" property, I wanted to ask: How can I remove the left margin (highlighted in yellow) from the label when using the textbox with an icon (see screenshot below)?




1 Reply 1 reply marked as answer

PM Ponmani Murugaiyan Syncfusion Team November 16, 2020 11:08 AM UTC

Hi Laurin, 

Thanks for contacting Syncfusion support. 

We have override the CSS style to achieve your requirement. Please find the sample below for your reference. 

.e-float-text.e-label-top { 
    margin-left: -30px; 
} 

Output:  
 
 


Regards, 
Ponmani M 


Marked as answer
Loader.
Up arrow icon