HTML Table: Setting the size of the table in pixel

This entry is part 5 of 16 in the series HTML Table

If you have like to set the size of the table in pixel and will occupy the whole of your browser window, you can first check your desktop display settings.


If you look at my laptop settings as shown on the above screen shot, you could see that it is set at 1366 x 768 pixels.  The first 1366 pixels is always the width.

<table border='1' width='1200px'>

Judging from my laptop settings, if you would like to set the width to full browser, you could probably set the width at about 1200 px as shown in the example below.

<!DOCTYPE html>
<head lang='en'>     
    <meta charset='UTF-8'>
    <title> Table</title>

<table border='1' width='1200px'>
        <td>Rod Stewart</td>
        <td>Maggie May</td>


Series Navigation<< HTML Table: Specifying the size of a table
HTML Table: Setting table height >>