Image size restore to orginal image size in mozilla

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jayasabari
    New Member
    • Sep 2007
    • 25

    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.
  • Death Slaught
    Top Contributor
    • Aug 2007
    • 1137

    #2
    Please post your code.

    Thanks, Death

    Comment

    • jayasabari
      New Member
      • Sep 2007
      • 25

      #3
      This is my code

      <asp:imagebutto n id="img_ss2" runat="server" Height="100px" Width="150px"></asp:imagebutton >

      Comment

      • drhowarddrfine
        Recognized Expert Expert
        • Sep 2006
        • 7434

        #4
        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.

        Comment

        • jayasabari
          New Member
          • Sep 2007
          • 25

          #5
          Link for my website.

          http://202.71.152.180/directionalpage s/HOME_TEMPLATE3. ASPX?enhance=30 2&name=&lette r=

          Comment

          • drhowarddrfine
            Recognized Expert Expert
            • Sep 2006
            • 7434

            #6
            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.

            Comment

            • jayasabari
              New Member
              • Sep 2007
              • 25

              #7
              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:imagebutto n id="img_ss2" runat="server" Height="100px" Width="150px"></asp:imagebutton >

              Comment

              • drhowarddrfine
                Recognized Expert Expert
                • Sep 2006
                • 7434

                #8
                Then use <img>. That works in all browsers. I don't know what this <imagebutton> thing is.

                Comment

                • garrow
                  New Member
                  • Jan 2008
                  • 32

                  #9
                  IE is crap

                  Mozilla is actually doing exactly what you are asking it to do
                  [HTML]<input name="img_ss2" id="img_ss2" src="/directionalpage s/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.

                  Comment

                  Working...