Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am building a asp.net application which has a bunch of forms.
I don't want to use table for designing Form, as it doesn't seem to be flexible to me.
Instead, I am using CSS styles. But, each css class for each web control is too much.
What's the better idea ? Should I use class or inline style ?
Posted

Build a set of classes that can be applied to every grid. This is exactly what classes are meant for.

If there is something additional that you want to do with some specific grids within your form, then create custom css sheets only for those particular grids. Apply them only to those grids.

Read more about using CSS here[^].
 
Share this answer
 
Get the idea from Style Web Forms Using CSS[^]
 
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