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

    Visual Studio vs. Hard Coding Web Applications...

    Electrified Research, Oct 11, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    466
    Kevin Spencer
    Oct 27, 2005
  2. kaeli
    Replies:
    0
    Views:
    643
    kaeli
    Aug 25, 2004
  3. Empire City
    Replies:
    3
    Views:
    434
    Empire City
    Apr 30, 2004
  4. JC

    textbox height = containing cell height - x

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

Share This Page