Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a website based on HTML. The

Status
Not open for further replies.

samesale

Programmer
Sep 15, 2003
133
US
I have a website based on HTML. The site is structure where sections are blocked using tables. However, the site looks great when shown on 17" old type (3 years old) monitor. The same site shows up with large blank spaces between tables when shown on 19" flat screen. My question is, it is possible to control how the site shows up on different sizes and types of monitors.

Any help will appreciated.
 
It's not the type of monitor that is causing the disparity, more the resolution at which the site is being displayed.

There are a lot of techniques you can use to make your site look the way you want no matter what the resolution of your screen. The most obvious one is to use relative measurements (percentages) over fixed widths. But without seeing your code, it's kinda hard to know where you've gone astray and how to fix it. Do you have a link to your site?

Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
 
Thank you very much for your suggestion. I agree. I will use your suggestion, and if it does not work, I will send you the code. Thanks again.
 
Here is my code for creating tables. However, when I expand the right table, it reduces the left table. I would like to show the left table on the 30% of space and the right on the 70%. Please help.

<htmt>
<head>
<title> SALEBYYOU.COM</title>
</head>
<body>
<!--- <img src=&quot;logo1.gif&quot; align=&quot;left&quot; width=&quot;40&quot;/> <center>
<! ---<img src=&quot;scan0005.gif&quot; align =&quot;center&quot; width=&quot;620&quot; height=&quot;40&quot; />
<!--- <img src=&quot;flag.jpeg&quot; width=&quot;40&quot; height=&quot;30&quot;> </center><br>
<!--- <img src=&quot;image005.gif&quot; align =&quot;center&quot; width=&quot;620&quot; height=&quot;60&quot; />
<hr size=&quot;5&quot; noshade>

<!--- <img src=&quot;tribar8.gif&quot; width=&quot;100%&quot;>

<table width= &quot;100%&quot; border=&quot;0&quot; bordercolor=&quot;blue&quot; cellspacing=&quot;10&quot;>
<tr><td bgcolor=&quot;white&quot; align=&quot;left&quot; valign=&quot;top&quot; ><b>
<Font SIZE=2 color=&quot;red&quot;>
TO <br> CLICK THE APPROPRIATE<br> link below:
<table border=&quot;5&quot; bgcolor=&quot;blue&quot; width=&quot;100%&quot;><b>
<tr> <td> <A HREF=&quot;cgi-bin/book.cgi&quot;> <font color=&quot;white&quot; size=1> <b> USED </a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/bookfic.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> USED</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/booknfic.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> USED</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/item.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> I</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/item2.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> I</a></td></tr>
<tr> <td> <A HREF=&quot;garage.html&quot;> <font size =1 color=&quot;white&quot;> <b> G</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/furniture.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> F</a></td></tr>
<tr> <td> <A HREF=&quot;car.html&quot;> <font size =1 color=&quot;white&quot;> <b> C</a></td></tr>
<tr> <td> <A HREF=&quot;truck.html&quot;> <font size =1 color=&quot;white&quot;> <b> TR</a></td></tr>
<tr> <td> <A HREF=&quot;apartrc.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></td></tr>
<tr> <td> <A HREF=&quot;housr.html&quot;> <font size =1 color=&quot;white&quot;> <b> HO</a></td></tr>
<tr> <td> <A HREF=&quot;apartr.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></td></tr>
<tr> <td> <A HREF=&quot;house.html&quot;> <font size =1 color=&quot;white&quot;> <b> H</a></td></tr>
<tr> <td> <A HREF=&quot;room.html&quot;> <font size =1 color=&quot;white&quot;> <b> R</a></td></tr>
<tr> <td> <A HREF=&quot;lease.html&quot;> <font size =1 color=&quot;white&quot;> <b> S/HOUSE</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/lawn.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> L</a></td></tr>
<tr> <td> <A HREF=&quot;event.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></td></tr>
<tr> <td> <A HREF=&quot;business.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></b></td></tr>
<br><br></font></table><br>
<Font SIZE=2 color=&quot;green&quot; ><b>
TO <br> CLICK THE APPROPRIATE<br> link below:</b>
<table border=&quot;5&quot; bgcolor=&quot;oldlace&quot; width=&quot;100%&quot;><b>
<tr><td> <A HREF=&quot;cgi-bin/booksearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> USED</a> </td></tr>
<tr><td> <A HREF=&quot;cgi-bin/bookfsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> USED </a> </td></tr>
<tr><td> <A HREF=&quot;cgi-bin/booknfsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> USEDS</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/itemrsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> MISCE</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/itemr100search.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> MISC</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/garagerr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> G</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/furnituresearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> F</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/carsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> CA </a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/trucksearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> TRU </a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/housersearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> H</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/apartrcr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> AP</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/apartsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> A</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/housesearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> H</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/roomrr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> R</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/leaserr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> AP</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/lawnr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> L</a></td></tr>
<tr><td> <A HREF=&quot;nosale.html&quot;> <font size =1 color=&quot;red&quot;> <b> P</a></td></tr>
<tr><td> <A HREF=&quot;nosale.html&quot;> <font size =1 color=&quot;red&quot;> <b> BUS</a></td></tr></b> </table>
<td align=&quot;left&quot; valign=&quot;top&quot;><FONT size=3>
<table border=&quot;10&quot; bgcolor=&quot;pink&quot; width=&quot;70%&quot;><tr><td><FONT COLOR=&quot;blue&quot;><CENTER><b>ADVERTISEMENT REQUEST.</CENTER></FONT></td></tr>
</table><br>
<table border=&quot;7&quot; bgcolor=&quot;white&quot; width=&quot;80%&quot;><tr><td><FONT COLOR=&quot;green&quot;><b>
Please click the appropriate link on the left: </font><font color=&quot;blue&quot;>white</font> and <font color=&quot;red&quot;> red.</font>
</b>
</FONT></td></tr>
</table><br>
<font color=red><b>ON THIS WEBSITE, YOU CAN:</font><br>
<table border=&quot;19&quot; bgcolor=&quot;yellow&quot; width=&quot;100%&quot;><tr><td><FONT COLOR=&quot;blue&quot;><b>
<dir>
<li/> Sell household;
<li/> Sell ;
<li/> Buy ;
<li/> Sell ;
<li/> Sell;
<li/> Sell ;
<li/> Rent ;
<li/> Sell ;
<li/> Sublease;
<li/> Locate ;
<li/> Announce.

</dir>
</FONT></td></tr>
</table><br>

<table border=&quot;7&quot; bgcolor=&quot;green&quot; width=&quot;70%&quot;><tr><td><FONT COLOR=&quot;white&quot;><b>
If you want to publish. </font>
</b><br><br>
<FONT COLOR=&quot;yellow&quot; size=2><b>IF AN VIEW IMAGE. <BR><br></font></A>
</FONT></td></tr>
</table>
<br>
<table border=&quot;7&quot; bgcolor=&quot;white&quot; width=&quot;560&quot;><tr><td><FONT COLOR=&quot;green&quot; size=2><b>
<b><center> LISTED ON THE APPROPRIATE WEBPAGE.</b></font><br><br>
<A HREF=&quot;mailto:support@salebyyou.com&quot;><FONT size=2 COLOR=&quot;RED&quot;><b>CONTACT US <BR><br></font></A>
<A HREF=&quot;mailto:support@salebyyou.com&quot;><font size=2>IF YOU WANT TO COMMENT OR MAKE SUGGESTIONS, CLICK THIS MESSAGE. </A></center>
</td>
</tr>
</table>
<br>
</table>

<center>



</body>
</html>
 
Hi mate,

Your code is screwed.

<htmt>
<head>
<title> SALEBYYOU.COM</title>
</head>
<body>
<!--- <img src=&quot;logo1.gif&quot; align=&quot;left&quot; width=&quot;40&quot;/> <center>
<! ---<img src=&quot;scan0005.gif&quot; align =&quot;center&quot; width=&quot;620&quot; height=&quot;40&quot; />
<!--- <img src=&quot;flag.jpeg&quot; width=&quot;40&quot; height=&quot;30&quot;> </center><br>
<!--- <img src=&quot;image005.gif&quot; align =&quot;center&quot; width=&quot;620&quot; height=&quot;60&quot; />
<hr size=&quot;5&quot; noshade>

<!--- <img src=&quot;tribar8.gif&quot; width=&quot;100%&quot;>

<table width= &quot;100%&quot; border=&quot;0&quot; bordercolor=&quot;blue&quot; cellspacing=&quot;10&quot;>
<tr><td bgcolor=&quot;white&quot; align=&quot;left&quot; valign=&quot;top&quot; ><b>
<Font SIZE=2 color=&quot;red&quot;>
TO <br> CLICK THE APPROPRIATE<br> link below:
<table border=&quot;5&quot; bgcolor=&quot;blue&quot; width=&quot;100%&quot;><b>
<tr> <td> <A HREF=&quot;cgi-bin/book.cgi&quot;> <font color=&quot;white&quot; size=1> <b> USED </a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/bookfic.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> USED</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/booknfic.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> USED</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/item.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> I</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/item2.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> I</a></td></tr>
<tr> <td> <A HREF=&quot;garage.html&quot;> <font size =1 color=&quot;white&quot;> <b> G</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/furniture.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> F</a></td></tr>
<tr> <td> <A HREF=&quot;car.html&quot;> <font size =1 color=&quot;white&quot;> <b> C</a></td></tr>
<tr> <td> <A HREF=&quot;truck.html&quot;> <font size =1 color=&quot;white&quot;> <b> TR</a></td></tr>
<tr> <td> <A HREF=&quot;apartrc.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></td></tr>
<tr> <td> <A HREF=&quot;housr.html&quot;> <font size =1 color=&quot;white&quot;> <b> HO</a></td></tr>
<tr> <td> <A HREF=&quot;apartr.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></td></tr>
<tr> <td> <A HREF=&quot;house.html&quot;> <font size =1 color=&quot;white&quot;> <b> H</a></td></tr>
<tr> <td> <A HREF=&quot;room.html&quot;> <font size =1 color=&quot;white&quot;> <b> R</a></td></tr>
<tr> <td> <A HREF=&quot;lease.html&quot;> <font size =1 color=&quot;white&quot;> <b> S/HOUSE</a></td></tr>
<tr> <td> <A HREF=&quot;cgi-bin/lawn.cgi&quot;> <font size =1 color=&quot;white&quot;> <b> L</a></td></tr>
<tr> <td> <A HREF=&quot;event.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></td></tr>
<tr> <td> <A HREF=&quot;business.html&quot;> <font size =1 color=&quot;white&quot;> <b> A</a></b></td></tr>
<br><br></font></table><br>
<Font SIZE=2 color=&quot;green&quot; ><b>
TO <br> CLICK THE APPROPRIATE<br> link below:</b>
<table border=&quot;5&quot; bgcolor=&quot;oldlace&quot; width=&quot;100%&quot;><b>
<tr><td> <A HREF=&quot;cgi-bin/booksearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> USED</a> </td></tr>
<tr><td> <A HREF=&quot;cgi-bin/bookfsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> USED </a> </td></tr>
<tr><td> <A HREF=&quot;cgi-bin/booknfsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> USEDS</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/itemrsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> MISCE</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/itemr100search.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> MISC</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/garagerr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> G</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/furnituresearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> F</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/carsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> CA </a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/trucksearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> TRU </a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/housersearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> H</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/apartrcr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> AP</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/apartsearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> A</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/housesearch.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> H</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/roomrr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> R</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/leaserr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> AP</a></td></tr>
<tr><td> <A HREF=&quot;cgi-bin/lawnr.cgi&quot;> <font size =1 color=&quot;red&quot;> <b> L</a></td></tr>
<tr><td> <A HREF=&quot;nosale.html&quot;> <font size =1 color=&quot;red&quot;> <b> P</a></td></tr>
<tr><td> <A HREF=&quot;nosale.html&quot;> <font size =1 color=&quot;red&quot;> <b> BUS</a></td></tr></b> </table>
<td align=&quot;left&quot; valign=&quot;top&quot;><FONT size=3>
<table border=&quot;10&quot; bgcolor=&quot;pink&quot; width=&quot;70%&quot;><tr><td><FONT COLOR=&quot;blue&quot;><CENTER><b>ADVERTISEMENT REQUEST.</CENTER></FONT></td></tr>
</table><br>
<table border=&quot;7&quot; bgcolor=&quot;white&quot; width=&quot;80%&quot;><tr><td><FONT COLOR=&quot;green&quot;><b>
Please click the appropriate link on the left: </font><font color=&quot;blue&quot;>white</font> and <font color=&quot;red&quot;> red.</font>
</b>
</FONT></td></tr>
</table><br>
<font color=red><b>ON THIS WEBSITE, YOU CAN:</font><br>
<table border=&quot;19&quot; bgcolor=&quot;yellow&quot; width=&quot;100%&quot;><tr><td><FONT COLOR=&quot;blue&quot;><b>
<dir>
<li/> Sell household;
<li/> Sell ;
<li/> Buy ;
<li/> Sell ;
<li/> Sell;
<li/> Sell ;
<li/> Rent ;
<li/> Sell ;
<li/> Sublease;
<li/> Locate ;
<li/> Announce.

</dir>
</FONT></td></tr>
</table><br>

<table border=&quot;7&quot; bgcolor=&quot;green&quot; width=&quot;70%&quot;><tr><td><FONT COLOR=&quot;white&quot;><b>
If you want to publish. </font>
</b><br><br>
<FONT COLOR=&quot;yellow&quot; size=2><b>IF AN VIEW IMAGE. <BR><br></font></A>
</FONT></td></tr>
</table>
<br>
<table border=&quot;7&quot; bgcolor=&quot;white&quot; width=&quot;560&quot;><tr><td><FONT COLOR=&quot;green&quot; size=2><b>
<b><center> LISTED ON THE APPROPRIATE WEBPAGE.</b></font><br><br>
<A HREF=&quot;mailto:support@salebyyou.com&quot;><FONT size=2 COLOR=&quot;RED&quot;><b>CONTACT US <BR><br></font></A>
<A HREF=&quot;mailto:support@salebyyou.com&quot;><font size=2>IF YOU WANT TO COMMENT OR MAKE SUGGESTIONS, CLICK THIS MESSAGE. </A></center>
</td>
</tr>
</table>
<br>
</table>

<center>



</body>
</html>

Every part that is in bold is an error. The comments tags start and don't end, you close a table twice, and that's not even mentioning the font tags.

When you are using percentages in this way, add a fixed width to your left side and leave the rest of the screen to expand to fill up the space.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Your code is screwed. [lol]

Don't beat around the bush, Wullie...what do you really think?



Hope This Helps!

Ecobb
- I hate computers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top