8 thoughts on “Quick Tip: Centering a Login control on a webpage in ASP.Net

  1. Jason ⋆★ 'Loki '★⋆ Smith says:

    thanx soooooooooooooooo much!!!!!!!!!!! helped me a lot (even though its such a simple solution, i couldnt find an answer and here it is!) :D

    thanx a mil!

  2. Just tried this with IE8 with limited success….the inner div is centred but the login control within this always aligns left no matter what. It renders fine in compatibilty mode however so I’m guessing maybe a subtle problem to do with the .net framework version or exact IE8 version used – in my case it is a VS2008 web site project targetting .net 3.5. Browser is IE version 8.0.6001.18702 – would be good to know what your test was run against as this might explain the difference – cheers.

    • Greetings! My initial tests were done with Chrome and Firefox I believe. At the time we were using IE7, which may have been why IE8 in non-compatability mode has issues.

      Regardless, I should work on getting this updated for more modern browsers. 8^D

What are your 10 bits on the matter? I want to know!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s