Rain Lover Posted March 9, 2012 Share Posted March 9, 2012 Hi, I tried to do it by adjusting the <td> width: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Sample Page</title><style type="text/css">div {width:100%; overflow:auto;}table, td {border:1px solid #000;}td {width:1000px;}</style></head><body><div><table><tr><td>First cell</td><td>Second cell</td><td>Third cell</td></tr><tr><td>Forth cell</td><td>Fifth cell</td><td>Sixth cell</td></tr></table></div></body></html> But it didn't work. Many thanks for any help!Mike Link to comment Share on other sites More sharing options...
garciasanchezdaniel Posted March 9, 2012 Share Posted March 9, 2012 Hello Mike ,you can try add a class to each td. Just like this: <tr><td class="class_td">First cell</td><td class="class_td">Second cell</td><td class="class_td">Third cell</td></tr><tr><td class="class_td">Forth cell</td><td class="class_td">Fifth cell</td><td class="class_td">Sixth cell</td></tr> And include inside <style></style> this line: .class_td{width:1000px;} Regards, Daniel Link to comment Share on other sites More sharing options...
dsonesuk Posted March 10, 2012 Share Posted March 10, 2012 Seems if the table has no fixed it will fill the entire screen, and the td cells will space themselves evenly whatever width you define, you will have to set the table width to 3000px, for the cells width to be 1000px. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.