Chasing label alignment problems on ASP.Net web pages

by Codewiz51 June 30, 2009 09:28

I've put together a short article with screen shots on resolving right-alignment issues with labels.  The solutions are simple and obvious, once you know to look for them:

  1. Make sure the html element used for labels (span in this case) is large enought to handle different font settings.
  2. Be aware that the font you are using in the Visual Studio 2008 designer is probably not the same for most of your users.
  3. If layout is critical, you should probably specify font-family and font-size in the element's style. (However, be aware the user can override your settings.)
  4. Always test your web page with an accessible theme in IE or FireFox.

 

Comments are closed

Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen | Modified by Mooglegiant


Disclaimer

This blog represents my personal hobby, observations and views. It does not represent the views of my employer, clients, especially my wife, children, in-laws, clergy, the dog, the cats or my daughter's horse. In fact, I am not even sure it represents my views when I take the time to reread postings.

All comments are moderated for content.

© Copyright 2008-2010