arcy
arcy

Reputation: 13153

What could interfere HTML table attributes?

I have the following code in a JSP:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<body>
    <table cellpadding="10">
        <tr><td>one</td><td>two</td></tr>
        <tr><td>three</td><td>four</td></tr>
    </table>
</body>

That's the entire file.

It is in a JSP that gets put in an IFrame. I can't figure out what is interfering with the cellpadding value -- each value should be 10 pixels from the boundary of its table cell, but it isn't. What am I missing here?

Here's the output:

output from HTML table

Here's the relevant section from Chrome's 'inspection' window:

enter image description here

Upvotes: 0

Views: 50

Answers (0)

Related Questions