Hi All,
I'm embarking on a revamp of my application and rather than having label and radtextbox pairs would like to use the built in labels of the radtextbox (and other controls).
In the sample below I would like to control the width (282px) in the CSS. However if I do that then the label width is ignored. The only way to get a fixed with label and textbox seems to be to declare the label with in the CSS and the overall textbox width as below - then in this case if the label is 100px wide the textbox itself would be 282px-100px = 182px.
Having to use the textbox for the width seems to be against the principle of CSS. Any suggestions?
Regards
Jon
I'm embarking on a revamp of my application and rather than having label and radtextbox pairs would like to use the built in labels of the radtextbox (and other controls).
In the sample below I would like to control the width (282px) in the CSS. However if I do that then the label width is ignored. The only way to get a fixed with label and textbox seems to be to declare the label with in the CSS and the overall textbox width as below - then in this case if the label is 100px wide the textbox itself would be 282px-100px = 182px.
<
telerik:RadTextBox
ID
=
"uxUsername"
Runat
=
"server"
Width
=
"282px"
Label
=
"Username:"
CssClass
=
"RadTextBoxHalf"
LabelCssClass
=
"RadTextBoxLabel"
></
telerik:RadTextBox
>
Having to use the textbox for the width seems to be against the principle of CSS. Any suggestions?
Regards
Jon