nmccamy Posted July 17, 2019 Share Posted July 17, 2019 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 More sharing options...
Funce Posted July 17, 2019 Share Posted July 17, 2019 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. Link to comment Share on other sites More sharing options...
dsonesuk Posted July 17, 2019 Share Posted July 17, 2019 https://www.w3schools.com/code/tryit.asp?filename=G64JNREP019O Link to comment Share on other sites More sharing options...
vmars316 Posted July 29, 2019 Share Posted July 29, 2019 <!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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now