Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i creating a radio buttons dynamically now i want to add space between 2 buttons

this my code create radio buttons

foreach (var item in subquestion.QuestionOptions)
{

@Html.RadioButton(subquestion.QuestionId.ToString(),item.Key, new { @class = "radiocss" }) @item.Value
}
Posted
Comments
Kornfeld Eliyahu Peter 23-Jun-14 5:24am    
Use CSS for visual issues...

1 solution

try this


C#
foreach (var item in subquestion.QuestionOptions)
{

@Html.RadioButton(subquestion.QuestionId.ToString(),item.Key, new { @class = "radiocss" }) @item.Value @:(space) 
}


(space) -- empty space
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900