I am simply trying to get an image to fit and auto-scale to the size of a table. I have tried numerous ways to get this done, but nothing seems to be working.
The above is one of the renditions of what I have tried in order to make it work.Code:<table id="bannerTable" > <tr > <td id="tux" > </td > <td id="bannerSegment" > <p class="formatting" > Tech Savvy Services </p> </td> </tr> </table>
Above are the CSS definitions I am using. The internal banner and tux segments resize according to how large the browser window is. Im looking to change the logo inside tux such that it will dynamically resize depending on how large the web page is, and have it fill the entire table element <td>. A couple things I have tried dont resize the image.Code:#tux { border-width: 1px; border-style: solid; width:10%; text-align: center; background-repeat:no-repeat vertical-align:middle; background-image:url('Images/logo.jpg'); } #bannerSegment { border-width: 1px; border-style: solid; width:90%; background-image:url('Images/Banner.jpg'); text-align:center vertical-align:middle; } #bannerTable { border-width: 1px; border-style: solid; width:100%; }


Reply With Quote
Bookmarks