Page 1 of 1

screen resolution

Posted: Tue Jul 29, 2003 3:38 am
by zuzupus
hi,

actually i created a table having "style=width:100%" and for headers i set something like this
<table border="1" cellspacing="0" cellpadding="0" style="width:100%" name="rsTable" id="rsTable" cols="11">
<th width="70">Datum</th>
<th width="66">Von</th>
<th width="66">Bis</th>
<th width="55">Kunde</th>
<th width="69">Projekt</th>
<th width="84">H-Vorgang</th>
<th width="74">U-Vorgang</th>
<th width="100">Text</th>
<th width="38">IST</th>
<th width="31">Soll</th>
<th width="53">Status</th>
<th width="100">&nbsp;</th>

now problem is when i make my window resolution let say 1152*864px then it looks somewhat better how i can make it almost same(without any gaps between 2 cols) in all resolution,as larger the resolution more is gap and it looks wierd.

hopefully any help me out in this style kind of things and change the code for me as i remoced style from table and width from header it looks better in 1152*864px but more than that it wont look gr8.

http://sever2.vitodesign.com/log.phtml

thanks in advance

thanks in advance

...

Posted: Wed Jul 30, 2003 1:11 am
by kettle_drum
Dont use the width attribute in the <td> tags and just use cellspacing and cellpadding to format them. Then it should work will all screen resolutions.

Re: ...

Posted: Wed Jul 30, 2003 4:48 am
by zuzupus
thanks alot..if i use <th wrap="true">it works fine for all resolutions

its appreciable

Posted: Wed Jul 30, 2003 5:53 am
by redhair
You can also use 'width="X%" nowrap' and since you define in table it should be %, you are actualy bending the rules when you use a fixxed variable for your td's. I believe it is not allowed to use both fixxed and variable specs for your table at the same time (although it works often) . Be sure to set all td's at a certain X% width so that when counted up you end up with 100%