Width of A Table
Hello. I am kind of a HTML newbie but I am creating a table with information. If i do not specify the width of the table, it makes it very long and I have to scroll horizontally on the page to see it all. I want to be able to shrink it down and make it viewable on one page. How can I do this? Can I make the font smaller or specify a width of the table? I did <table width="400" border="1"> but this didnt change anything. Help please.
This code will strech the table to fill the width of the screen.
<table width="100%" border="0" cellspacing="0" cellpadding="0">
The best way to do it would be via css.
The only reason a table would go wider than the screen is if the contents of the table are too wide.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)