I have a html table for displaying data. I have the typical width="100%"; but it did not work. Here is what my page looks like and my CSS/HTML styling. How can I fix it to auto fit the screen?
Code:
<table style="border: medium solid #FFFFFF; background-color: #000000; position: fixed;"
border="3" width="100%";>
Make sure your body element has padding and margin set to 0
Without setting this vs when this is set
html, body{
height:100%;
width:100%;
padding:0;
margin:0;
}
Add this CSS:
body {
margin: 0
}
Because the default margin for body element in not 0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With