How can i set float label to fixed by default?

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
vitalmed
Posts: 1
Joined: 01 Nov 2019, 08:01

13 Nov 2019, 06:47

I need float label to be fixed at the top left by default. how can i set?

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

17 Dec 2019, 13:40

Hi,
You can add the below code in your stylesheet or _theme_styles.scss file in overrides folder(src/assets/sass/overrides);

Code: Select all

body {
    .ui-float-label>label {
        top: -.75em;
        font-size: 12px;
    }
}

Post Reply

Return to “Babylon - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests