Jump to content
nmccamy

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

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;
}
 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites
<!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>

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...