Image with a mimimum size but grows

Discussion in 'HTML' started by tristan.buckmaster@gmail.com, Sep 16, 2005.

  1. Guest

    hi,

    How would I create an image that is contained within a table cell that
    has a set minimum width and height, but grow as the table cell grows.

    My table setup is as follows:

    <table>
    <tr>
    <td>
    <table>
    <tr>
    <td><img .....></td>
    <td>..........</td>
    <td><img .....></td>
    </tr>
    <tr>....</tr>
    .......
    </table>
    </td>
    <td width="100%">
    ......
    </td>
    </tr>
    </table>

    With those two images being the ones I wish to have the aforementioned
    properties.

    Thanks,

    Tristan
     
    , Sep 16, 2005
    #1
    1. Advertising

  2. Neredbojias Guest

    With neither quill nor qualm, quothed:

    > hi,
    >
    > How would I create an image that is contained within a table cell that
    > has a set minimum width and height, but grow as the table cell grows.


    Javascript. Depending on exactly what you want, you could possibly use
    general percentages as well.

    --
    Neredbojias
    Contrary to popular belief, it is believable.
     
    Neredbojias, Sep 16, 2005
    #2
    1. Advertising

  3. in alt.html, wrote:

    > How would I create an image that is contained within a table cell that
    > has a set minimum width and height, but grow as the table cell grows.


    img {width:100%;height:100%;}
    td.img {width:<min-width>;height:<min-height>}



    --
    Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
     
    Lauri Raittila, Sep 16, 2005
    #3
    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. Dobieslaw Wroblewski

    JPanel grows too wide - how to stop it?

    Dobieslaw Wroblewski, Jan 29, 2005, in forum: Java
    Replies:
    0
    Views:
    663
    Dobieslaw Wroblewski
    Jan 29, 2005
  2. vj
    Replies:
    2
    Views:
    569
    Jeff Kish
    May 5, 2006
  3. Steffen Krippner
    Replies:
    0
    Views:
    280
    Steffen Krippner
    Nov 14, 2003
  4. Steffen Krippner
    Replies:
    0
    Views:
    363
    Steffen Krippner
    Nov 14, 2003
  5. Jeff Epler
    Replies:
    2
    Views:
    364
Loading...

Share This Page