Das Notes Forum

Domino 9 und frühere Versionen => ND6: Entwicklung => Thema gestartet von: DAU-in am 18.07.07 - 12:35:29

Titel: Spaltenbreite im Web
Beitrag von: DAU-in am 18.07.07 - 12:35:29
ich dreh noch durch hier.

Ich habe eine Tabelle im Web, die recht breit ist. Daher hatte ich den guten Einfall, die Spaltenbreite zu verändern. Allerdings wird diese Idee aktuell von Notes nicht entsprechend gewürdigt.

Zum einen habe ich in den HTML-Tags der Tabelle bei den Cells 'Width:300px;'
eingetragen, danach testweise bei den Table-Eigenschaften oben.

ausserdem habe ich mehrere Versuche unternommen, eine Klasse dafür zu definieren im CSS-Teil (.h2 {th width:300px; })

liege ich hier völlig daneben,  benutze ich die falsche Syntax, oder bin ich bescheuert?
Titel: Re: Spaltenbreite im Web
Beitrag von: Glombi am 18.07.07 - 12:45:39
Trag mal width="300" unter Tabellen HTML Tags - Andere ein.

Andreas
Titel: Re: Spaltenbreite im Web
Beitrag von: DAU-in am 18.07.07 - 13:13:18
nein, keine Auswirkung.
Browsercache habe ich auch schon geleert, Form einmal kopiert, Notews auf und zugemacht ....

bei den Feldern funktioniert es ja mit einer Angabe bei den HTML-tags, aber hier ignoriert er einfach alles ....

von irgendwo anders wird das überschriben, aber ich verstehe nicht woher
Titel: Re: Spaltenbreite im Web
Beitrag von: m3 am 18.07.07 - 13:24:28
Zeig mal den HTML-Code der Tabelle.
Titel: Re: Spaltenbreite im Web
Beitrag von: DAU-in am 18.07.07 - 14:58:03
also, ich probiers mal:

ich habe ein Maske mit einer Tabelle('fit with Margins') drin. In einer Spalte sind 3 felder, 2 mit einer Felddefinition(die auch greift) und eines, das einen Datepicker anzeigt.
Im Anhang sieht man, wie es ist und wie es sein soll.

Meine Idee war, für die Spalte in den Spalteneigenschaften die Weite anzugeben (steht jetzt drin wie bei Glombi, sowohl für Tables als auch für Cells).

Der Source Code sieht felgendermassen aus:
<td style="color:#424282; face:Arial;width:600px;" width="4%"><font size="2" face="Arial">
<input name="fnd_XXX_0" value="" class="textFieldShortMatrix "></font>                   <a onclick="scwShow (document.getElementById('fnd_XXX_0'), this,6,0);"><img src='http://XXX/cal_icon.gif'></a> <br>
<font size="1" face="Arial">
<input type="checkbox" name="p_XXX_0" value="protect" class="protectfeldMatrix">protect</font></td>


im CSS-Teil steht folgendes:

<style type="text/css">

/* Definition of Elements */

   table {border:1; cellpadding:0; cellspacing:0;}
   a {color:#666699; font-style:normal; text-decoration:none;}
   a:active {color:#666699;}
   a:visited {color:#666699;font-style:normal; text-decoration:none;}
   font {face:Arial; size:8pt; }
   body {line-height:100%; margin-top:1px;}
   
   h1 {color:#666699;font-face:Arial; size:16pt;font-style: bold;>




/* Definition of Classes */
   /* Definition of Tabbed Tables */
      .ptx {}
      .ptdatefield {color:#666699;font-face:Arial; font-size: 10px;width:80px;}
      .datefield {color:#666699;font-face:Arial; font-size: 10px;width:80px;}
      .textField {color:#666699;font-face:Arial; font-size: 10px;width:80px;}
      .textFieldLong {color:#666699;font-face:Arial; font-size: 10px;width:160px;}
      .textFieldShort {color:#666699;font-face:Arial; font-size: 10px;width:70px;}
      .textFieldMatrix {color:#666699;font-face:Arial; font-size: 10px;width:80px;}
      .textFieldLongMatrix {color:#666699;font-face:Arial; font-size: 10px;width:160px;}
      .textFieldShortMatrix {color:#666699;font-face:Arial; font-size: 10px;width:60px;}
      .textFieldLarge {color:#666699;font-face:Arial; font-size: 10px;width:250px;}
      .protectField{color:#666699;font-face:Arial; font: Arial; font-size: 6px;width:20px;}
      .protectFieldMatrix{color:#666699;font-face:Arial; font: Arial; font-size: 6px;width:20px;}
</style>



Wo kommt die Einstellung für die 'td style' her???

Ich blicks nicht mehr   ....
Titel: Re: Spaltenbreite im Web
Beitrag von: m3 am 18.07.07 - 16:07:46
Nimm mal die Leerzeichen bei "</font>                   <a ..." raus, danns sollts IMHO klappen.
Titel: Re: Spaltenbreite im Web
Beitrag von: DAU-in am 18.07.07 - 17:13:57
ich probier morgen weiter, heute mag ich den scheiss nicht mehr anfassen