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

CSS help with Radbutton

5 Answers 154 Views
Button
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 05 Jul 2013, 07:41 PM
I am using the radbuttons with the icon.  All works fine except it displays funny with my current CSS.  My Margins are messing up the display of the radbutton.  What are the class's I can use to over write this margin on my radbuttons?

input {
    margin: 3px 5px 5px 5px;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #c2c2c2;}

5 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 08 Jul 2013, 05:49 AM
Hi Ryan,

I guess you want to set margin for the icon inside the RadButton. Please check the following sample code.

ASPX:
<telerik:RadButton ID="RadButton1" runat="server" Text="Delete">
    <Icon PrimaryIconUrl="../Images/Close.png" />
</telerik:RadButton>

CSS:
<style type="text/css">
    .rbPrimaryIcon
    {
        left: 11px !important;
        top: 6px !important;
    }
</style>

Thanks,
Shinu.

0
Ryan
Top achievements
Rank 1
answered on 08 Jul 2013, 04:07 PM
That did not help.

Here is what the buttons looks like.
0
Ryan
Top achievements
Rank 1
answered on 08 Jul 2013, 04:10 PM
Here is what is the html generated.
0
Shinu
Top achievements
Rank 2
answered on 09 Jul 2013, 04:18 AM
Hi Ryan,

Unfortunately I couldn't replicate this issue at my end. Can you please send the full code you tried?

Thanks,
Shinu.
0
Danail Vasilev
Telerik team
answered on 10 Jul 2013, 12:00 PM
Hello Ryan,

I can suggest you to examine thoroughly Distorted Appearance help article that treats a similar issue. Said shortly, when you have a global CSS set it may distort the appearance of the script controls on the page. What you can do, in order to handle this is to remove all the custom CSS from you page layout and if that fixes the issue, then start turning one by the styles until you find and fix the problematic style rule.

Regards,
Danail Vasilev
Telerik
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 the blog feed now.
Tags
Button
Asked by
Ryan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Ryan
Top achievements
Rank 1
Danail Vasilev
Telerik team
Share this question
or