+ Reply to Thread
Results 1 to 2 of 2

Thread: Creating a table that sizes 50% of the page

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    36

    Creating a table that sizes 50% of the page

    I`d like to make a table that has border and it`s size must be 50% of the page , i could just do the
    table but there werent any borders.

    Any Help ?

  2. #2
    Here is the perfect example for what you need :
    Code:
    <table border="1" width="50%" cellpadding="10"> <!--width can be like 150-->
    	<tr>
    		<th>Header 1</th>
    		<th>Header 2</th>
    		<th>Header 3</th>
    	</tr>
    	<tr>
    		<td align="center">What</td>
    		<td align="center">is</td>
    		<td align="center">on</td>
    	</tr>
    	<tr>
    		<td align="center">my</td>
    		<td align="center">mind</td>
    		<td align="center">now</td>
    	</tr>
    </table>
    Where width=50% which means half size of the page and cellpadding is set to 10 and that means
    the amount of empty space outside the table elemnt boundry , you can change that.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts