Click here to Skip to main content
15,917,174 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi! I am not very old to new versions of CSS i.e 2.1 an 3 onwards.I have studied some books but no where I am find the lessons regarding the alignment of Web Server Controls.I can give them good look and feel through skin file but not getting a solution for CSS technique.Inline or Internal is fine but how to do it in external stylesheet.Or shall I use that old table stuff
Posted

1 solution

There are many ways you can align web server controls.

1. You can use style property directly to apply alignments.
2. You can use CssClass property to asign class name which is defined in your css file.

Find following links useful for further explanation.

http://stackoverflow.com/questions/4216418/asp-net-how-to-use-css-to-align-asp-net-controls-in-a-data-entry-situtaion

http://stackoverflow.com/questions/4937290/aligning-controls-on-page-for-asp-net-web-application

http://stackoverflow.com/questions/1683960/asp-net-vertical-alignment-of-controls-in-a-panel


Hope this help!
 
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