Black_Panter
Ensign
- Registriert
- Mai 2006
- Beiträge
- 197
Verwendet man dafür nicht eher <div>-Tags?
Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<style type="text/css">
.facetable {
width: 100%; <- funktioniert nicht, nur "X"px
border-width: 0px;
border-spacing: 1px;
border-style: none;
border-color: gray;
border-collapse: collapse;
background-color: #eeeeee;
}
Tribo0n schrieb:Geht nur in HTML, da das ganz für eine E-Mail gehen soll!
Geht nicht wie ich vorhin geschrieben habevolcem schrieb:Du kannst allerdings auch PHP dafür nutzen.
Die TD Spalten sollen alle Fixiert auf 198px sein und die Tabelle soll sich je nachdem wie viele Spalten da sind anpassen.volcem schrieb:Legst einfach eine div um das ganze und kannst dann <table> auf 100% setzen....
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<style type="text/css">
.facetable {
width: 1024px;
border-width: 0px;
border-spacing: 1px;
border-style: none;
border-color: gray;
border-collapse: collapse;
background-color: #eeeeee;
}
.facetd {
width: 198px;
border-width: 1px;
padding: 3px;
border-bottom-style: none;
border-left-style: inset;
border-right-style: inset;
border-top-style: inset;
border-color: gray;
background-color: #ffffff;
}
.facetd2 {
width: 198px;
border-width: 1px;
padding: 3px;
border-bottom-style: none;
border-left-style: inset;
border-right-style: inset;
border-top-style: inset;
border-color: gray;
background-color: #eeeeee;
font-family: Arial;
font-size: 12;
}
.faceth {
width: 198px;
border-width: 1px;
padding: 3px;
border-bottom-style: inset;
border-left-style: inset;
border-right-style: inset;
border-top-style: none;
border-color: gray;
background-color: #eeeeee;
font-family: Arial;
font-size: 10;
text-align: left;
}
.logobig {
font-family: Impact;
font-size: 54pt;
color: #c0c0c0;
margin: 0px;
padding: 0px;
text-align: right;
}
.logosmall {
line-height: 0.1em;
font-family: Impact;
font-size: 16pt;
color: #c0c0c0;
margin: 0px;
padding: 0px;
text-align: right;
}
.headline {
font-family: Arial;
font-size: 18pt;
color: #ff0000;
margin: 0px;
padding: 0px;
}
.text {
font-family: Arial;
font-size: 12;
}
.text2 {
font-family: Arial;
font-size: 11;
color: #0000ff;
}
.text3 {
font-family: Arial;
font-size: 11;
color: #808080;
}
.faceimg {
border-width: 0px;
border-spacing: 1px;
border-style: none;
border-color: gray;
border-collapse: collapse;
}
</style>
</HEAD>
<BODY bgColor=#f8f8f8>
<p class="logobig">XXXX</p>
<p class="logosmall">XXXX</p>
<p class="text">XXXX</p>
<p class="headline">XXXX</p><BR>
<TABLE class="facetable">
<tr>
<td class="facetd" href="02820405.jpg"><IMG class="faceimg" src="C:\Fotos\thumb_02820404.jpg"></A></td>
<td class="facetd" href="02820405.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820405.jpg"></center></A></td>
<td class="facetd" href="02820406.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820406.jpg"></center></A></td>
<td class="facetd" href="02820407.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820407.jpg"></center></A></td>
<td class="facetd" href="02820408.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820408.jpg"></center></A></td>
<td class="facetd" href="02820409.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820409.jpg"></center></A></td>
<td class="facetd" href="02820410.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820410.jpg"></center></A></td>
<td class="facetd" href="02820411.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820411.jpg"></center></A></td>
<td class="facetd" href="02820412.jpg"><center><IMG class="faceimg" src="C:\Fotos\thumb_02820412.jpg"></center></A></td>
</tr>
<tr>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<td class="facetd2">XXXX</td>
<tr>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820404</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820405</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820406</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820407</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820408</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820409</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820410</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820411</th>
<th class="faceth"><br>Datum: 03.03.2011<br>Bildnummer: 02820404</th>
</tr>
</table>
<BR>
<p class="text">XXXX</p>
<p class="text3">XXXX</p>
<FONT color=#008000 size=4><SPAN lang=en-GB><SPAN
style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 14pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: Arial; mso-ansi-language: EN-GB; mso-fareast-language: DE; mso-bidi-language: AR-SA; mso-no-proof: yes"
lang=EN-GB>P</SPAN></FONT>
<FONT style="FONT-SIZE: 8pt" face=Arial color=#008000 size=1> Please consider the environment before printing this email.</FONT>
</TABLE>
</BODY>
</HTML>
<table>
<tr>
<th></th>
<td></td>
</tr>
</table>
.facetable {
width: 100%;
}
.facetable {
width: 3000px;
}
ripuli-6 schrieb:wenn du das <img> in einen absatz (<p style="text-align:center">) packst, sollte das Bild zentriert werden.
Tribo0n schrieb:Am liebsten wäre es mir wenn die Tabelle 100% vom E-Mail Fenster des Empfängers hat.
Geht sowas, das dann die Spalten automatisch in die "nächste Zeile" springen?
<!DOCTYPE html>
<html><head>
<title>Test</title>
<style type="text/css">
ul {
margin:0;
padding:0;
position:relative;
clear:both;
}
li {
margin-left:10px;
min-width:200px;
max-width:200px;
float:left;
list-style:none;
overflow:hidden;
}
li p {
margin:0;
padding:10px;
}
.bild {
text-align:center;
padding:0;
}
.bild img {
border:2px solid white;
}
</style>
</head>
<body>
<ul>
<li>
<p class="bild">
<a href=""><img src=".jpg" /></a>
</p>
<p class="datum">12.12.2010</p>
<p class="text">Hier kommt der Untertitel rein</p>
</li>
<li>
<p class="bild">
<a href=""><img src=".jpg" /></a>
</p>
<p class="datum">12.12.2010</p>
<p class="text">Hier kommt der Untertitel rein</p>
</li>
<li>
<p class="bild">
<a href=""><img src=".jpg" /></a>
</p>
<p class="datum">13.12.2010</p>
<p class="text">Hier kommt der Untertitel rein</p>
</li>
</ul>
</body></html>
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
ul {
margin:0px;
padding:0px;
position:relative;
clear:both;
}
li {
margin:5px 0px 0px 5px;
min-width:198px;
max-width:198px;
float:left;
list-style:none;
overflow:hidden;
border:1px solid gray;
background-color:#ffffff;
}
.datumbildnummer {
margin:0px;
padding:3px;
font-family:Arial;
font-weight:Bold;
font-size:7.5pt;
text-align:left;
background-color:#eeeeee;
}
.bild {
text-align:center;
padding:3px;
margin:0px;
height:192px;
}
.bild img {
border:0px;
}
.logobig {
margin:-10px 0px 0px 0px;
font-family: Impact;
font-size:54pt;
color:#c0c0c0;
padding:0px;
text-align:right;
}
.logosmall {
margin:-15px 0px 0px 0px;
font-family:Impact;
font-size:16pt;
color:#c0c0c0;
padding:0px;
text-align:right;
}
.headline {
margin:-7px 0px 0px 5px;
font-family: Arial;
font-size:18pt;
color: #ff0000;
padding:0px;
}
.text {
border-top:1px solid gray;
margin:0px;
padding:3px;
background-color:#eeeeee;
font-family: Arial;
font-size:10pt;
}
.text2 {
margin-left: 5px;
font-family:Arial;
font-size:8pt;
color: #0000ff;
}
.text3 {
margin-left: 5px;
font-family:Arial;
font-size:8pt;
color: #808080;
}
.text4 {
margin-left: 5px;
font-family: Arial;
font-size: 10pt;
}
</style>
</head>
<BODY bgColor=#f8f8f8>
<p class="logobig">XXXXX</p>
<p class="logosmall">XXXXX</p>
<p class="text4">XXXXX<p>
<p class="headline">XXXXX</p>
<ul>
<li>
<p class="bild">
<a href="C:\Fotos\02820404.jpg"><img src="thumb_02820404.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820404</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820405.jpg"><img src="thumb_02820405.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820405</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820404.jpg"><img src="thumb_02820406.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820406</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820405.jpg"><img src="thumb_02820407.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820407</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820404.jpg"><img src="thumb_02820408.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820408</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820405.jpg"><img src="thumb_02820409.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820409</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820404.jpg"><img src="thumb_02820410.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820410</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820405.jpg"><img src="thumb_02820411.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820411</p>
</li>
<li>
<p class="bild">
<a href="C:\Fotos\02820405.jpg"><img src="thumb_02820412.jpg" /></a>
</p>
<p class="text">XXXXX</p>
<p class="datumbildnummer">Datum: 03.03.2011<br>Bildnummer: 02820412</p>
</li>
</ul>
<br style="clear:both;">
<p class="text4">
XXXXXBR><BR>
XXXXX<BR><BR>
XXXXX<BR><BR>
</p>
<p class="text2">
XXXXX</p>
<p class="text3">
XXXXX</p>
<FONT color=#008000 size=4> <SPAN lang=en-GB><SPAN style="FONT-FAMILY: Webdings; COLOR: green; FONT-SIZE: 14pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-theme-font: minor-fareast; mso-bidi-font-family: Arial; mso-ansi-language: EN-GB; mso-fareast-language: DE; mso-bidi-language: AR-SA; mso-no-proof: yes" lang=EN-GB>P</SPAN>
</FONT>
<FONT style="FONT-SIZE: 8pt" face=Arial color=#008000 size=1>
Please consider the environment before printing this email.
</FONT>
</body>
</html>