This is a migrated thread and some comments may be shown as answers.

how to align text of textbox label at top.

3 Answers 918 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Raj
Top achievements
Rank 1
Raj asked on 30 Jan 2012, 12:03 PM
hi friends, sorry to ask this silly question. but iam new to telrik.
i placed a textbox control in my screen, which haves width:450px and height:100px.
the label for that textbox is placed in the middle for textbox, i need that text to place in the top against that textbox.

how to apply the text on top for the textbox. what css class should used to bring the text on the top.
thanks in advances
S.Rajkumar.

3 Answers, 1 is accepted

Sort by
0
Raj
Top achievements
Rank 1
answered on 30 Jan 2012, 12:23 PM
finally i got the answer for this issues.... the css class for top alignment of the text is
.RadInput table.riTable td
        {
            vertical-align:top !important;
        }
0
Raj
Top achievements
Rank 1
answered on 30 Jan 2012, 12:40 PM
sorry friends., again i got a issue.
if i apply that CSS class in my stylesheet, every textbox label values are changed to top.
but, i want to apply that CSS class for particular textbox only.
i cannot apply that css class using control id. i want to apply to group of textbox controls.
how to apply. ?
thanks in advances.
S.Rajkumar
0
Vasil
Telerik team
answered on 01 Feb 2012, 10:50 AM
Hi Raj,

You could use the WrapperCssClass property of the RadInput to specify a CSS class. Then use this class in your CSS selector to get a higher specificity and to style only the inputs with the given class.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
General Discussions
Asked by
Raj
Top achievements
Rank 1
Answers by
Raj
Top achievements
Rank 1
Vasil
Telerik team
Share this question
or