how to get specific cell height without hard-coding a height value

Discussion in 'HTML' started by laredotornado@zipmail.com, Aug 19, 2006.

  1. Guest

    Hello,

    I am putting a repeating background image in a table cell. I would
    like the table cell to be the same height as the background image, but
    I haven't figured out how to do this without hard-coding a height, as
    I've done below ...

    <tr><td valign="bottom" align="center" style="padding-bottom:10px;
    color:#ffffff; background-image:url('images/red-footer.gif');
    height:77px;">č2005 Reman Resource &amp; The Refilling Station.
    All Rights Reserved.</td></tr>

    If we switch the image with something else, the height may change and
    I'll have to re-code this. Is there a better way? All suggestions
    welcome.

    Thanks, - Dave
     
    , Aug 19, 2006
    #1
    1. Advertisements

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. Electrified Research

    Visual Studio vs. Hard Coding Web Applications...

    Electrified Research, Oct 11, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    613
    Kevin Spencer
    Oct 27, 2005
  2. kaeli
    Replies:
    0
    Views:
    723
    kaeli
    Aug 25, 2004
  3. Replies:
    5
    Views:
    1,161
    Chris Smith
    Sep 18, 2005
  4. Replies:
    25
    Views:
    976
    Neredbojias
    May 5, 2006
  5. Empire City
    Replies:
    3
    Views:
    644
    Empire City
    Apr 30, 2004
  6. RJ
    Replies:
    1
    Views:
    419
    Eliyahu Goldin
    Feb 17, 2005
  7. JC

    textbox height = containing cell height - x

    JC, Jul 29, 2004, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    354
    DujHoD
    Aug 2, 2004
  8. Replies:
    2
    Views:
    471
    Thomas 'PointedEars' Lahn
    Aug 5, 2008
Loading...