0

Hello, I was wondering what it is I need to do in order for my width of the div tag to be 1000px; and then it will shrink/resize the width of it if the browser shrinks/resized?


Thank you

4
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by andrewliu
0

inplainsite is right, instead of setting width as 1000px, use width="100%" or so to be able to fit to browser's window automatically

0

Not saying that the % width solution won't work it does quite nicely but sometimes you may need a more precise control of your width. For this you could also use javascript:

function changeDivSize()
{
 alert('window.onresize fired');
 /* here you would grab the div and change height/width */
}
window.onresize = changeDivSize;
0

oh interesting. i'm not that familiar with javascript. can you please explain some more about it?

Also, how would u do the width so if i do the % it has a minimum width so the tables won't collide or the tables wont squeeze to a thin table.

thanks

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.