By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,723 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,723 IT Pros & Developers. It's quick & easy.

Image size restore to orginal image size in mozilla

P: 25
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
Share this Question
Share on Google+
8 Replies


Death Slaught
100+
P: 1,137
Please post your code.

Thanks, Death
Jan 11 '08 #2

P: 25
This is my code

<asp:imagebutton id="img_ss2" runat="server" Height="100px" Width="150px"></asp:imagebutton>
Jan 11 '08 #3

drhowarddrfine
Expert 5K+
P: 7,435
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

P: 25
Link for my website.

http://202.71.152.180/directionalpages/HOME_TEMPLATE3.ASPX?enhance=302&name=&letter=
Jan 12 '08 #5

drhowarddrfine
Expert 5K+
P: 7,435
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

P: 25
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 5K+
P: 7,435
Then use <img>. That works in all browsers. I don't know what this <imagebutton> thing is.
Jan 12 '08 #8

P: 32
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.