467,074 Members | 974 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,074 developers. It's quick & easy.

Image size restore to orginal image size in mozilla

Hi all,
I am working on asp.net. Iam fixing the image height and width but it taking the orginal image size in mozilla. Working fine in IE.

Can any one help me.
Jan 11 '08 #1
  • viewed: 2075
Share:
8 Replies
Death Slaught
1GB
Please post your code.

Thanks, Death
Jan 11 '08 #2
This is my code

<asp:imagebutton id="img_ss2" runat="server" Height="100px" Width="150px"></asp:imagebutton>
Jan 11 '08 #3
drhowarddrfine
Expert 4TB
Most people don't use asp.net. You must post the generated html. The complete markup or a link is necessary to help.

In almost all cases, mozilla is performing correctly but IE is not.
Jan 11 '08 #4
Link for my website.

http://202.71.152.180/directionalpages/HOME_TEMPLATE3.ASPX?enhance=302&name=&letter=
Jan 12 '08 #5
drhowarddrfine
Expert 4TB
Well, as ASP.NET frequently does, you have far too much invalid markup in your html and CSS including the lack of a proper doctype, IE being in 'quirks mode' and a huge, complicated table based layout for such a simple page. Tables are never to be used for layout. IE is also not displaying what you wrote while Firefox is but I couldn't begin to help you with this.
Jan 12 '08 #6
Thanks for your reply,

But what can i do, I am using imagebutton, image original size is coming, if i use image then it is coming properly.(IN MOZILLA)

My code is


<asp:imagebutton id="img_ss2" runat="server" Height="100px" Width="150px"></asp:imagebutton>
Jan 12 '08 #7
drhowarddrfine
Expert 4TB
Then use <img>. That works in all browsers. I don't know what this <imagebutton> thing is.
Jan 12 '08 #8
IE is crap

Mozilla is actually doing exactly what you are asking it to do
[HTML]<input name="img_ss2" id="img_ss2" src="/directionalpages/tradeshow/organizer/dptest349@gmail.com302/13.jpg" alt="" style="height: 100px; width: 150px;" border="0" type="image">[/HTML]

The image file is actually 150px high and 104px wide.
Your dimensions are wrong, and Firefox is rendering the image as you have asked it to.

Ah ASP, the HTML it outputs is almost word-like sometimes.
Jan 14 '08 #9

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

20 posts views Thread by http://links.i6networks.com | last post: by
1 post views Thread by Antonie C Malan Snr | last post: by
14 posts views Thread by D. Alvarado | last post: by
1 post views Thread by John Thompson | last post: by
3 posts views Thread by dcruncher4@aim.com | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.