how to align text of textbox label at top.

4 posts, 0 answers
  1. Raj
    Raj avatar
    3 posts
    Member since:
    Jun 2011

    Posted 30 Jan 2012 Link to this post

    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.
  2. Raj
    Raj avatar
    3 posts
    Member since:
    Jun 2011

    Posted 30 Jan 2012 Link to this post

    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;
            }
  3. Raj
    Raj avatar
    3 posts
    Member since:
    Jun 2011

    Posted 30 Jan 2012 Link to this post

    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
  4. Vasil
    Admin
    Vasil avatar
    1641 posts

    Posted 01 Feb 2012 Link to this post

    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
Back to Top