Cristiano
Cristiano

Reputation: 3199

Space around radio button to big

I'm working on one large site and currently all radio buttons look like this:

enter image description here

In my View I have this code:

@Html.RadioButton("new", "new", false, new { @onclick = "New()", @id = "new", @class="radio-button" }) Some Text

And CSS for radio button:

.radio-button label {
  width:5px;
}

That width doesn't change anything. How can I remove all that space around radio button and have text near radio button? I was looking in that generated CSS Site.css but I can't find where it's defined to be like that.

Thank you!

Upvotes: 1

Views: 4009

Answers (1)

Filipe Tagliacozzi
Filipe Tagliacozzi

Reputation: 1431

Are you definig input width in somewhere else? Its not semantical ,but try

margin:0;
padding:0;    
width:5px!important;

If it works, try to "inspect element" with Developer Tools(chrome) to see if it hav any inheritance

Upvotes: 1

Related Questions