PDA

View Full Version : HTML Question



MM983
June 5th, 2004, 23:37
I have been designing simple sites for some time now. Everything I have learned has been through trial and error [or success]. But there is one problem I have never been able to figure out. It's about the page "auto adjusting" to the person's Internet Explorer window. For instance, right now I have an IE window open with my favorites to the side. When I take that away, the site readjusts itself so that it expands to fit the whole window. I guess the best example would be here: http://www.smoothwall.org/

If you open your favorites/history/whatever bar, the site adjusts smaller. When you close it, the logo and such expand. What is the code that does this?

CAWUnited.com
June 5th, 2004, 23:56
this is done by using percentages in the table widths instead of pixels.. for example.. instead of putting <table width="800"> , you could put <table width="90%"> . Same thing goes for the <tr> and <td> tags.

glassowater87
June 6th, 2004, 00:30
You can also use CSS,


table {
width : 90%;
}

MM983
June 6th, 2004, 10:19
Ok, I tried what you said and I made an example. Is this correct?

Link: http://members.cox.net/webpagetesting/

CAWUnited.com
June 6th, 2004, 10:32
Ok, I tried what you said and I made an example. Is this correct?

Link: http://members.cox.net/webpagetesting/
yep, it's working