Click to See Complete Forum and Search --> : Screenresolution??
Terror
04-08-2003, 08:15 AM
Hello,
Can somebody help me? I'm building a website where I use some tables in it.
Is there some code thato adjusts this table when I change my screenresolution?
Thnx Terror
You can substitute width and height values as percentages.
Example:
width=80%
height=80%
This will render a 640 x 480 table on an 800 x 600 screen, an 819 x 614 on a 1024 x 768 screen.
Terror
04-08-2003, 08:46 AM
I tryed that but it still doesn't resize.
I'm running at 1024*768 and when I set my resolution too 800*600 my table is too large and breaks out of my screen so...
Can you please help me??
Grtz
That means that either the content in your table is too big (images?) or that you have set the width of your table manually somewhere...
Terror
04-08-2003, 08:53 AM
Yes their is an image in.
But is their any way to resize my table (and al it's content)???
I already experimented a little with Javascripts, but it doesn't work (a least not with me ;) )
Grtz
apezVal
04-08-2003, 09:01 AM
>That means that either the content in your table is too big (images?)
Is there a way to get the images to auto-scale and size-adjust when the page is opened in all the different page display resolution settings people can set that vary from those of the page author?
Terror
04-08-2003, 09:12 AM
Here is my code:
<div align="center">
<p> </p>
<p> </p>
<table width="76%" border="0" align="center">
<tr>
<td width="19%" height="39"> </td>
<td width="30%" height="39"> </td>
<td width="31%" height="39"> </td>
<td width="20%" height="39">
<p align="center"><font color="#027FFF"><b><font size="5" face="Century Gothic"><a href="Netwerkbeheer.htm">NETWERK<br>
BEHEER</a></font></b></font></p>
</td>
</tr>
<tr>
<td width="19%" height="48">
<div align="center"><font face="Century Gothic" color="#027FFF"><b><font size="5"><a href="Netwerkimplementatie.htm">NETWERK
IMPLEMENTATIE</a></font></b></font></div>
</td>
<td width="30%" height="48"> </td>
<td width="31%" height="48"> </td>
<td width="20%" height="48"> </td>
</tr>
<tr>
<td width="19%"> </td>
<td colspan="2">
<div align="left"><img src="Falcon%20Logo.jpg" width="333" height="213"></div>
</td>
<td width="20%"><font color="#027FFF" size="5"><b><font face="Century Gothic"><a href="Automatisering.htm">AUTOMATISERING</a></font></b></font></td>
</tr>
<tr>
<td width="19%" height="55"> </td>
<td width="30%" height="55"><font color="#027FFF"></font></td>
<td width="31%" height="55"> </td>
<td width="20%" height="55"> </td>
</tr>
<tr>
<td width="19%" height="79">
<div align="center"><font color="#027FFF"><b><font size="5" face="Century Gothic"><a href="Softwaredevelopment.htm">SOFTWARE
DEVELOPMENT</a></font></b></font></div>
</td>
<td width="30%" height="79"> </td>
<td width="31%" height="79"> </td>
<td width="20%" height="79"><font color="#027FFF"><b><font size="5" face="Century Gothic"><a href="Internet.htm">INTERNET</a></font></b></font></td>
</tr>
</table>
</div>
khaki
04-08-2003, 09:53 AM
Hi Terror...
for simplicity sake alone, I would:
1) eleiminate the Table width setting
2) eliminate all of the column width settings AFTER the first row
3) remove the image from the page until you have the widths working properly
then try it again and see how it works (sorry... i didn't test your table... but i see
that you are unnecessarily overusing the width attribute, and that can sometimes cause conflicts).
the advice that i'd really like to give is to tell you to dump the table and use CSS
for page layout instead (but you asked for a table solution... so I will respect that).
try it and see how it looks...
;) k
apezVal
04-08-2003, 10:32 AM
>>Here is my code:
(which I find to have the basic architecture as follows:)
<div align="center">
----------
<p> </p>
<p> </p>
<table width="76%" border="0" align="center">
<tr></tr> <tr></tr> <tr></tr> <tr></tr> <tr></tr>
</table>
</div>
_________
Not to criticize, I want to learn here too,...
The page seems to display (for me locally at least with 800x600px and 19inch monitor) with the central image and content all shifted to the right and the periphery content seems to need wider margins. the 'automatseiring ' link that abutts the central image too closely was sliced on my resolution and I had to scroll over to read it.
Since I tend to avoid the use of tables in general, I am wondering why you do not just use css styled <p> tags instead of all the tables and rows?
With CSS which is not so difficult to learn, it may be easier for you.
Terror
04-08-2003, 04:29 PM
I will try with CSS
I let you people know the result :)
Thanx for all your help
Grtz Terror