Geeks With Blogs
Software Engineering with Sean Eby opinions, trips, tricks and tools for Software Engineering and .NET September 2007 Entries
Tip #2: ASP.NET ImageButton and the famous style="border-width:0px;"
Today, I had the pleasure of trying to use CSS to style some ASP.NET ImageButtons. One aspect of the style that we wanted was a border around the button on a mouse hover. However, no matter what I tried, I could not set a border on the button with CSS. After a bit more digging, I found out that ASP.NET is trying to help us by inserting an Inline style of border-width:0px if we haven't defined a border-width for the ImageButton (which, of course, we have not, as we're using CSS!). So, I went to faithful ......

Posted On Thursday, September 13, 2007 4:14 PM

Copyright © Sean Eby | Powered by: