Avatar of geeta_m9
geeta_m9
 asked on

How do I get a table in HTML to not move when the browser is resized?

I have a Web page that has a template with a list of menu options on it on the left-hand side of the page. I also have a table with some contents in it next to the menu.  I would like the table to stay on the left side of the page next to the menu. However,  if I drag the right edge of the browser to make it bigger, the table moves along with it resulting in a gap (whit space) between the menu and the table. How do I make the table stay put on the left side of the page even if I resize the browser to make it bigger?
HTMLWeb Browsers

Avatar of undefined
Last Comment
geeta_m9

8/22/2022 - Mon
ChetOS82

Set the width of the table to a specific size in pixels.

<table style="width:500px;">
</table>
geeta_m9

ASKER
It has already been set to 582px, i.e.:

<tr style="HEIGHT: 12.75pt" height="17">&nbsp;
<table style="WIDTH: 582px; HEIGHT: 238px" cellSpacing=0 cellPadding=0 align=center border=0>
<tbody>
<tr>
.
.
.
ChetOS82

So, the table is staying the same size, but it is moving away from the menu on the left?

Sounds like the div that the menu is inside of is expanding.  Try setting the width on that.
Your help has saved me hundreds of hours of internet surfing.
fblack61
geeta_m9

ASKER
Does that mean that I have to adjust the template?
ASKER CERTIFIED SOLUTION
ChetOS82

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.
geeta_m9

ASKER
Your answer makes a lot of sense. I will try working on it and get back to you.