Jump to content

When displaying a simple table of one cell, the table displays roughly twice the size it should.


nmccamy

Recommended Posts

Browser: Chrome (displaying at 100%)
Desktop Monitor: 4K

When displaying a simple table of one cell, the table displays roughly twice the size it should.  Just as though you zoomed in 200%. I have a 4K desktop monitor and the table should display the full width 3840px and a height of 2560px.  But the table is displaying twice that size.  How do I display this table so it fits correctly on my screen (3840 x 2560)?

How can something so simple be this difficult to accomplish?

HTML Code:

<!DOCTYPE html>
<html>
    <head>
        <title>
            Test
        </title>
        <link rel="stylesheet" type="text/css" href="css/styles.css">
    </head>
    <body>
        <table>
            <tr>
                <td>
                </td>
            </tr>
        </table>
    </body>
</html>

 

Style Sheet Code:

body{
    margin: 0;
}
 

Link to comment
Share on other sites

Is this code incomplete?

There's nothing to suggest that this would do anything of what your saying.

With no content and that styling, the table actually shows up at a whopping 6 by 6 pixels. Nowhere close to twice a 4K monitor.

 

Also trying using a code block to better highlight your code.

XcQfW3F.png

Link to comment
Share on other sites

  • 2 weeks later...
<!DOCTYPE html>
<html>
    <head>
        <title>
            Test
        </title>
        <link rel="stylesheet" type="text/css" href="css/styles.css">
    </head>
    <body>
  <div style="border: 4px solid blue ; min-width: 200px; max-width:350px;">
        <table  style="border: 4px solid red ;">
            <tr>
                <td width="200" bgcolor="#F0f0f0">asdfgh
                </td>
            </tr>
        </table>
   </div>
    </body>
</html>

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...