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

Remove space before text

3 Answers 74 Views
Button
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 21 May 2011, 08:39 PM
Does anyone know how to remove the space before the text on the button. It looks like space for an icon but I dont want to use an icon. I just want to display text.

Thanks

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 May 2011, 05:22 AM
Hello Andrew,

You could achieve this by overriding the default CSS like below.
CSS:
<style type="text/css">
        .rbDecorated
        {
            text-align: left !important;
        }
</style>

Thanks,
Shinu.
0
Andrew
Top achievements
Rank 1
answered on 23 May 2011, 09:43 AM
Hi have tried your code below and it seems to distort the look of the button. it looks like there are two buttons overlapping?

I am using a standard button
0
Shinu
Top achievements
Rank 2
answered on 23 May 2011, 09:55 AM
Hello Andrew,

This worked as expected at my end.
aspx:
<telerik:RadButton  ID="radButton1" runat="server" ButtonType="StandardButton" AutoPostBack="true"   Text="StandardButton">
</telerik:RadButton>
CSS:
<style type="text/css">
        .rbDecorated
        {
            text-align: left !important;
        }
</style>

Please elaborate your scenario if it doesn't help.

Thanks,
Shinu.
Tags
Button
Asked by
Andrew
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Andrew
Top achievements
Rank 1
Share this question
or