Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> </head> <body> <table> <tr> <!-- Set padding of 10px (top), 20px (right), 30px (bottom), and 40px (left) for the first cell in the first row --> <td style="padding: 10px 20px 30px 40px; background-color: cyan;">Cell 1</td> <!-- Set padding of 20px (top and bottom), and 30px (right and left) for the second cell in the first row --> <td style="padding: 20px 30px; background-color: cyan;">Cell 2</td> </tr> <tr> <!-- Set padding of 0px (top and right), and 10px (bottom) for the first cell in the second row --> <td style="padding: 0 0 10px; background-color: cyan;">Cell 3</td> <!-- Set padding of 0px (top and bottom), and 20px (right and left) for the second cell in the second row --> <td style="padding: 0 20px; background-color: cyan;">Cell 4</td> </tr> </table> </body> </html>