Avatar of Sathish David  Kumar N
Sathish David Kumar N
Flag for India asked on

how to find table size for all screen in HTML

HI ,

I am design one HTML page ,It contain HTML table
in my computer monitor working fine for all browser but in small monitor or height monitor the alignment are differ .

How to fix the height of the table depends upon the monitor and browser ??
HTMLJavaScript

Avatar of undefined
Last Comment
Pravin Asar

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Edwin Hoffer

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dave Baldwin

You can make a table adjust to the available screen by using percentages to set the sizes.  Or even by not setting any sizes.  Tables will automatically adjust when you don't set any sizes.  Can you show us the code for your table?
Sathish David Kumar N

ASKER
ya i gave 90% height only ? but its not working ...
Sathish David Kumar N

ASKER
edwin where i want to close the dive above ??
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Edwin Hoffer

Close it after the table class
Sathish David Kumar N

ASKER
<div id=1 stsyle={width:100%;margin:auto;}>
   <div id=2 stsyle={width:1150px;margin:auto;} >
       <table></table>
   </div>
</div>

is this correct ??
Edwin Hoffer

Yes try this.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Pravin Asar

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.