473,405 Members | 2,334 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Width/Height for ImageButton not working

I have the following:

<asp:ImageButton ID="UpButton" text="Move Up" visible=false
runat="server" ImageUrl="../images/arrowUp.gif" Width="16px" Height="16px"
CommandName="Up" OnClick="moveRowUp" AlternateText="^"/><br>

Which is supposed to be valid.

I am trying to make the button size smaller and this works in IE, but not in
Mozilla. As a matter of fact, if you look at the viewsource for Mozilla the
Width and Height are gone (but they are there for IE).

I did:

style="height:16px;width:16px;"

And it does work.

Why doesn't the other? They are valid properties, according to MS. And why
would Mozilla take them out? I thought the rendering was done by IIS?

Thanks,

Tom
Nov 19 '05 #1
1 2050
The rendering isn't done by IIS, IIS serves the request, but the actual
processing of the pages are done by ASP.Net. ASP.Net emits the HTML it
thinks is correct for the particular browser. Microsoft has always used
browser definitions from cyscape (http://www.browserhawk.com/). The problem
is, they haven't always updated those definitions for MS as frequently as we
would like. Thus, a lot of browsers may register as having a lesser set of
capabilities. You can add code to your web.config file that will define
newer browsers and their editions. Try running a search through this NG or
google for browser definitions in the web.config. I'm sorry I don't have a
URL on hand with a set of them.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"tshad" <ts**********@ftsolutions.com> wrote in message
news:u0**************@TK2MSFTNGP10.phx.gbl...
I have the following:

<asp:ImageButton ID="UpButton" text="Move Up" visible=false
runat="server" ImageUrl="../images/arrowUp.gif" Width="16px" Height="16px"
CommandName="Up" OnClick="moveRowUp" AlternateText="^"/><br>

Which is supposed to be valid.

I am trying to make the button size smaller and this works in IE, but not
in Mozilla. As a matter of fact, if you look at the viewsource for
Mozilla the Width and Height are gone (but they are there for IE).

I did:

style="height:16px;width:16px;"

And it does work.

Why doesn't the other? They are valid properties, according to MS. And
why would Mozilla take them out? I thought the rendering was done by IIS?

Thanks,

Tom

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Glabbeek | last post by:
I'm changing the layout of my site. Instead of using tables, I will use DIVs. It's working fine, except for 1 thing: In IE6 some DIVs are not the correct width. Mozilla and Opera are showing the...
1
by: Michael Evanchik | last post by:
The following tag works fine in internet explorer, but in mozilla the image is not sized and left at its actualy size. Anyone know why? I though asp.net works on any browswer. ...
3
by: Nathan Sokalski | last post by:
I need to get the width and height of a GIF image through code. I need this info so that I can set the width and height properties of Image and ImageButton objects....
3
by: Nathan Sokalski | last post by:
I need to get the width and height of a GIF image through code. I need this info so that I can set the width and height properties of Image and ImageButton objects....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.