Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Image Width

  1. #1
    New Coder
    Join Date
    Jun 2006
    Posts
    67
    Thanks
    20
    Thanked 0 Times in 0 Posts

    Image Width

    I have an image in a table; the images are kind of a border for the content in the middle of the table. I'm currently using width="100%" for the bottom image (the width and height of the table can vary as it will be used for multiple different areas).

    So the question is: How do I get a different image to automatically expand to the height of the cell it's in? I've tried height="100%", height="auto", etc... but none have worked properly.

    Thanks in advance for any assistance.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You will probably need to set the images as background images.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Jun 2006
    Posts
    67
    Thanks
    20
    Thanked 0 Times in 0 Posts
    Thanks. I used background even though it isn't compliant...How difficult would it be convert it to CSS?

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    http://www.w3schools.com/css/css_background.asp
    Searching for an answer saves time. Do some CSS tutorials. The question you just asked was pretty basic. www.htmldog.com has some good stuff.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •