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

Skins and standalone CSS

1 Answer 84 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
dhuss
Top achievements
Rank 1
dhuss asked on 10 Oct 2011, 09:18 PM
I have noticed when a new radTextbox is added, they all have the same width. I don't want to set the width property for each textbox, but would prefer to use a standalone CSS file. I would like to get the look of the Telerik skins, using the skin manager, but be able to controls the widths with a seperate CSS file. Can you use the Telerik skins and a standalone CSS file together, and if so, how?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 11 Oct 2011, 05:15 AM
Hello Dhuss,

You can add CssClass and Skin as follows:

ASPX:
<head runat="server">
  <title></title>
<style type="text/css">
  .TextBoxClass
  {
    width: 500px !important;
  }
</style>
</head>
<body>
<form id="form1" runat="server">
 <div>
   <asp:ScriptManager ID="ScriptManager1" runat="server">
   </asp:ScriptManager>
   <telerik:RadTextBox ID="RadTextBox1" runat="server" CssClass="TextBoxClass" Skin="Forest">
  </telerik:RadTextBox>
 </div>
</form>
</body>

Also take a look into the following document:
Using the CSS class to set the width

Thanks,
Princy.
Tags
General Discussions
Asked by
dhuss
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or