Search code examples
c#asp.netdetailsview

Misaligned DetailsView controls


I'm using a DetailsView in an applicaoon I am developing, and have a minor issue. My detailsview has multiple control types - checkboxs, textboxs, drop down lists etc. They are all slightly misaligned from each other vertically -I.e. Text boss are pushed slightly right for some reason.

I can easily fix it by changing the margins of the controls so they line up, but that's rather 'hacky' and probably won't work well in all browsers. Is there a simpler way?


Solution

  • You can change the align of detailsview so every item will be have the same align.