Remove space before text

4 posts, 0 answers
  1. Andrew
    Andrew avatar
    23 posts
    Member since:
    Apr 2011

    Posted 21 May 2011 Link to this post

    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
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 May 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andrew
    Andrew avatar
    23 posts
    Member since:
    Apr 2011

    Posted 23 May 2011 Link to this post

    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
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 May 2011 Link to this post

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