| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| Senior Member Join Date: Jul 2005 Location: NJ
Posts: 1,219
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Setting Minimum Width in Relative Width of Table I have a table with a relative width (percentage) so that it will stretch to fill the screen appropriately. The only thing is that in it, i have a row of images that cannot be smaller than the width of the original layout. Because of this, when the browser window is reduced in size, everything shrinks except for the images, which hang out on the sides uglily. heres an excerpt of my code(containing the images that hang out): Code: <table height="79" width="95%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td class="bordervert"></td> <td width="18"><img src="img/head2.gif"></td> <td width="84"><a href="index.shtml" class="headlinks"><img src="img/head3.gif"></a></td> <td width="86"><a href="academics/index.shtml" class="headlinks"><img src="img/head4.gif"></a></td> <td width="86"><a href="activities/index.shtml" class="headlinks"><img src="img/head5.gif"></a></td> <td width="86"><a href="overview/index.shtml" class="headlinks"><img src="img/head6.gif"></a></td> <td width="86"><a href="pfa/index.shtml" class="headlinks"><img src="img/head7.gif"></a></td> <td width="86"><a href="events/index.shtml" class="headlinks"><img src="img/head8.gif"></a></td> <td width="86"><a href="admissions/index.shtml" class="headlinks"><img src="img/head9.gif"></a></td> <td width="85"><a href="resources/index.shtml" class="headlinks"><img src="img/head10.gif"></a></td> <td><img src="img/blank.gif"></td> <td width="3"><img src="img/head11.jpg"></td> <td class="bordervert"></td> </tr> </table>
__________________ Hacksar.com - Your source for random computer tips and tricks! MySiteMemberships.com - Keep track of your site registration information! Like my post? Rep is appreciated! |
| |
| | #2 (permalink) |
| NamePros Member Join Date: Apr 2006
Posts: 186
![]() | Assign a CSS class to the table and in your definition of this class use: Code: .class {
min-width: 100px;
} http://www.doxdesk.com/software/js/minmax.html
__________________ |
| |