seco Posted June 20, 2009 Share Posted June 20, 2009 Hi i have a table inside a div and the div width is set to a percent and when i shrink the browser the div is shrinked but the table inside this div still theh same width ! any idea why? thanks in advance. Link to comment https://forums.phpfreaks.com/topic/162998-divs-shrinked-but-tables-dont-when-shrinking-the-browser/ Share on other sites More sharing options...
SuperBlue Posted June 28, 2009 Share Posted June 28, 2009 Likely because the table is in fixed-width. Try setting it like below. div, table { width: 50%; } Link to comment https://forums.phpfreaks.com/topic/162998-divs-shrinked-but-tables-dont-when-shrinking-the-browser/#findComment-865098 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.