Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
AI Productivity Tools
UI/UX Tools
Debugging
Free Tools
Support and Learning
Docs & Resources
Productivity and Design Tools
I am new to Telerik (and CSS in generally) and unfortunately I am struggeling even with simple things.
I just want to set the Font-Size of a FloatingLabel like this:
.floatinglabel { width: 100%; color: red; font-size: 8px; }
Hi Hendrik,
I'm ready to help you out.
You are on the right path. The CSS selector needs to be slightly different.
Here is an example I have prepared for you to demonstrate:
<style> .floatinglabel .k-label { color: red; font-size: 8px; } </style> <TelerikFloatingLabel Class="floatinglabel" Text="Your Name"> <TelerikTextBox Id="name" @bind-Value="@Name" /> </TelerikFloatingLabel> @code { string Name { get; set; } }
That CSS selector now targets the exact label text. Please run and test it to see the result.
Additionally, you can use the browser dev tools to inspect and check the CSS selectors on the current razor page.
Regards, Hristian Stefanov Progress Telerik
Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.
Hi Hristian,
thank you very much. Now I see a lot of things more clearly. The hint with the BrowserDevTools was the key.