screen resolution

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
zuzupus
Forum Commoner
Posts: 70
Joined: Thu Jul 17, 2003 4:54 am

screen resolution

Post 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
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

...

Post 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.
zuzupus
Forum Commoner
Posts: 70
Joined: Thu Jul 17, 2003 4:54 am

Re: ...

Post by zuzupus »

thanks alot..if i use <th wrap="true">it works fine for all resolutions

its appreciable
User avatar
redhair
Forum Contributor
Posts: 300
Joined: Fri May 30, 2003 4:36 pm
Location: 53.23N-6.57E
Contact:

Post 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%
Post Reply