0

i cant get the table to cover the whole page in height. so when you use different sizes of moniotrs. it always covers the height size.

i have it so width=500
and it is centered. thanks if any1 can help

7
Contributors
9
Replies
11
Views
8 Years
Discussion Span
Last Post by MidiMagic
0

Can you not set it to height="100%"?

Are you setting the table properties in the html or a css file?

0

yeha i set height to 100 in html code. what does the auto property do for height?

0

So you'd use something like: <table height="100%" width="500" align="center"> That would set the height to 100% of the window and the width to 500 pixels, this would change the height depending on the size of the screen but the width will stay the same.

Hope thats what you're after

0

Yep, what MJ said should work. Here's an example:

<table style="min-height: 100%; height: 100%; width: 500px; margin: 0 auto; border: 1px solid black;">

Defining an absolute width then margin: 0 auto is a better way to center any block element.

0

margin: auto allows the browser to adjust the margin as needed, sticking stuff in the center. I don't think you can specify %'s in the width attribute, only in the style property.

0

Hi,

if you want your webpage hieght or widht to fit into your browser give height or width in percentize(100%)

0

You can not set the size of something to exactly fit the height of the browser window in a way that works on all browsers. Do not waste your time trying to do this.

When width and height conflict in the sizes they need for an object, width has priority over height.

With some browsers, 100% height is 100% of the height of the document, not the browser window.

The display of web pages is not intended to exactly fill the screen in the vertical direction. This use was never intended. It is designed to expand downward until all of the content is rendered.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.