align=middle not working in firefox

Discussion in 'Software' started by ted64, Oct 9, 2008.

  1. ted64

    ted64

    Joined:
    Oct 9, 2008
    Messages:
    1
    I have the following simple html. You can substitute any .gif file you have to test. In IE, the image appears to the right of the textbox and directly centered vertically. In firefox (3) it appears to the right, but at the bottom. If I specify align=bottom, it shows in the same place. If I specify align=top, it aligns with the top of the textarea. It just seems at though the middle is not working.

    <HTML><BODY>
    <textarea style="overflow:auto;width:600px;height:160px;"></TEXTAREA>
    <img tabindex="-1"
    src="img_menu.gif"
    style="cursor:default;display:inline;margin:0px"
    align="middle"
    width="16"
    height="16" />
    </BODY></HTML>
    ted64, Oct 9, 2008
    #1
    1. Advertising

  2. ted64

    BXA

    Joined:
    Dec 4, 2008
    Messages:
    3
    Use a table to do the layout.

    Hope this helps.
    Code:
    <HTML>
    <BODY>
        <table>
            <tr>
                <td>
                    <textarea style="overflow:auto; display:inline;width:600px;height:160px;"></textarea>
                </td>
                <td>
                    <img tabindex="-1"
                    src="yourimage.gif"
                    style="cursor:default;display:inline;margin:0px; height: 76px; width: 77px;"
                    align="middle" 
                    width="16"
                    height="16"/>
                </td>
            </tr>
        </table>
    </BODY>
    </HTML>
    
    BXA, Dec 19, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oliver Schlosser

    FCS Align Error OID`s

    Oliver Schlosser, Jul 11, 2003, in forum: Cisco
    Replies:
    0
    Views:
    1,795
    Oliver Schlosser
    Jul 11, 2003
  2. Jeff Wisnia

    MS Works Database-How to align names in reports?

    Jeff Wisnia, Nov 19, 2003, in forum: Computer Support
    Replies:
    1
    Views:
    418
    Boomer
    Nov 19, 2003
  3. Imhotep

    Hollywood, Microsoft Align on New Windows

    Imhotep, Aug 31, 2005, in forum: Computer Security
    Replies:
    0
    Views:
    380
    Imhotep
    Aug 31, 2005
  4. indumathi

    how to align this drop down box?plz help

    indumathi, Mar 4, 2008, in forum: General Computer Support
    Replies:
    0
    Views:
    1,023
    indumathi
    Mar 4, 2008
  5. flurboglarf@mailinator.com

    How to align sequence of photos?

    flurboglarf@mailinator.com, Apr 6, 2009, in forum: Digital Photography
    Replies:
    4
    Views:
    832
Loading...

Share This Page