XHTMLforum

XHTMLforum (http://xhtmlforum.de/index.php)
-   (X)HTML (http://xhtmlforum.de/forumdisplay.php?f=72)
-   -   Tabelle soll in DIV 100% breit sein (http://xhtmlforum.de/showthread.php?t=65604)

jannemann 30.08.2011 16:50

Tabelle soll in DIV 100% breit sein
 
Hallo Forum,

über den FCK-Editor habe ich mir eine Tabelle erstellt die eine Breite von 100%hat. Leider habe ich jetzt links und rechts einen Abstand. Ich habe schon einiges versucht aber nichs hat funktioniert. Könnt ihr mir vielleicht einen Tipp geben?

Anbei noch ein Screenshot.

Schöne Grüße,
Jan

http://img4.fotos-hochladen.net/uplo...z67bkp1std.png

David 30.08.2011 17:22

Den Quelltext bitte! Am besten ein Link zum Problem.

Praktikant 30.08.2011 17:22

Kann es sein, dass das umgebende div ein padding hat?

Ein Link zu deinem Testcase wäre angebracht.

jannemann 30.08.2011 17:36

Hi,

ich bastel mit Xampp deswegen kann ich leider keinen Link zum Problem posten. Gibt es nicht eine Anweisung, das ich das padding auf 0 setzen kann?

Karlo 30.08.2011 17:41

Hi,

naja es gibt genug kostenlose Anbieter wo man sich Webspace holen kann. Lad es hoch und poste einen Link. Wenn es nicht zu viel Code ist, kann man auch den Quellcode posten.

Danke...

Praktikant 30.08.2011 18:42

Zitat:

Zitat von jannemann (Beitrag 501332)
Hi,

ich bastel mit Xampp deswegen kann ich leider keinen Link zum Problem posten.

Das ist allenfalls eine schlechte Ausrede, welche den Satz "Sorry, aber ich habe dazu echt keinen Bock" ganz gut umschreibt.
Zitat:

Zitat von jannemann (Beitrag 501332)
Gibt es nicht eine Anweisung, das ich das padding auf 0 setzen kann?

Gibt es:
Code:

*{padding:0; margin:0;}
Mit margin solltest du dasselbe machen.

Allerdings. Die Glaskugel mit welcher ich diese Aussage traf ist in letzter Zeit nicht mehr so genau...

jannemann 30.08.2011 22:00

Hi,

hier ist der Quellcode:

HTML-Code:

<table style="margin: 0px; padding: 0px 18px;" border="1" cellpadding="0" cellspacing="0" width="99%">
    <colgroup style="margin: 0px; padding: 0px;"><col style="margin: 0px; padding: 0px; width: 81pt;" width="108"><col style="margin: 0px; padding: 0px; width: 44pt;" width="58"><col style="margin: 0px; padding: 0px; width: 51pt;" width="68"><col style="margin: 0px; padding: 0px; width: 54pt;" width="72"><col style="margin: 0px; padding: 0px; width: 50pt;" width="67"><col style="margin: 0px; padding: 0px; width: 59pt;" width="78"><col style="margin: 0px; padding: 0px; width: 68pt;" width="90"><col style="margin: 0px; padding: 0px; width: 41pt;" width="55"><col style="margin: 0px; padding: 0px; width: 46pt;" width="61"><col style="margin: 0px; padding: 0px; width: 44pt;" width="59"></colgroup>
    <tbody style="margin: 0px; padding: 0px;">
        <tr style="margin: 0px; padding: 0px; height: 38.25pt;" height="51">
            <td class="xl66" style="margin: 0px; padding: 2px; height: 38.25pt; width: 81pt;" height="51" width="108"><strong style="margin: 0px; padding: 0px;">Typ</strong></td>
            <td class="xl70" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            kg</strong></td>

            <td class="xl70" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            (B) in mm</strong></td>
            <td class="xl70" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            <span style="margin: 0px; padding: 0px;">&nbsp;</span>(N) in mm</strong></td>
            <td class="xl70" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            (E) in mm</strong></td>

            <td class="xl70" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 59pt; text-align: center;" width="78"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            <span style="margin: 0px; padding: 0px;">&nbsp;</span>in mm</strong></td>
            <td class="xl71" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 68pt; text-align: center;" width="90"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            in mm</strong></td>
            <td class="xl71" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            ca. sec.</strong></td>

            <td class="xl70" style="margin: 0px; padding: 2px; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            kW</strong></td>
            <td class="xl70" style="margin: 0px; padding: 2px; border-left-style: none; width: 44pt;" width="59"><strong style="margin: 0px; padding: 0px;">123<br style="margin: 0px; padding: 0px;">
            ca. kg</strong></td>
        </tr>
        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>

            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">180</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">800</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">980</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1250 x 800</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1250 x 750</td>

            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">17</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">1,1</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">270</td>
        </tr>
        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>

            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">180</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">800</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">980</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">123</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">123</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">17</td>

            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">1,1</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">280</td>
        </tr>
        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">180</td>

            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">800</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">980</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">123</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">123</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">17</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">1,1</td>

            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">280</td>
        </tr>
        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">180</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">800</td>

            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">980</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1400 x 1000</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1250 x 750</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">17</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">1,1</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">290</td>

        </tr>
        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1200</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1500 x 800</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1500 x 750</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">14</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">320</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1200</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1500 x 1000</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1500 x 750</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">14</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">330</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1200</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1700 x 800</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1500 x 750</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">14</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">330</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1200</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1700 x 1000</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">1500 x 750</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">14</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">340</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1300</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1500</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2000 x 1000</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2000 x 900</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">18</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">460</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1300</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1500</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2000 x 1250</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2000 x 900</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">18</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">480</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1300</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1500</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2300 x 1000</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2000 x 900</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">18</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">480</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">200</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1300</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1500</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2300 x 1250</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2000 x 900</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">18</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="59">500</td>
        </tr>

        <tr style="margin: 0px; padding: 0px; height: 12.75pt;" height="17">
            <td class="xl68" style="margin: 0px; padding: 2px; height: 12.75pt; border-top-style: none;" height="17"><strong style="margin: 0px; padding: 0px;">123</strong></td>
            <td class="xl69" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 44pt; text-align: center;" width="58">1000</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 51pt; text-align: center;" width="68">220</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 54pt; text-align: center;" width="72">1600</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 50pt; text-align: center;" width="67">1820</td>

            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2500 x 1000</td>
            <td class="xl65" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; text-align: center;">2500 x 900</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 41pt; text-align: center;" width="55">30</td>
            <td class="xl67" style="margin: 0px; padding: 2px; border-top-width: medium; border-top-style: none; border-left-width: medium; border-left-style: none; width: 46pt; text-align: center;" width="61">2,3</td>
        </tr>
    </tbody>
</table>


Sinokle 30.08.2011 22:14

Die Tabelle hat schon mal 18 Pixel Seitenpadding. Und die Breite steht nur auf 99%.

Karlo 30.08.2011 22:21

Hi,

haste doch selber so vorgegeben mit deinen padding: 0px 18px;, da brauchst du dich auch nicht wundern wenn dann links/rechts der Abstand ist.

Padding geht von oben los, also padding: top, right, bottom, left. Wenn du das nicht möchtest mit dem Abstand, nimm das Padding raus.

jannemann 31.08.2011 09:33

Guten Morgen,

ich muss meine Aussage noch mal korrigieren.
Wenn ich mit dem FCK-Editor eine Tabelle anlege, dann sieht der Quellcode im FCK-Editor so aus:

HTML-Code:

<table width="100%" border="1" cellpadding="1" cellspacing="1">
    <tbody>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
    </tbody>
</table>

Der Quellcode sieht so aus:

HTML-Code:

<table width="100%" border="1" cellpadding="1" cellspacing="1">

    <tbody>

        <tr>

            <td>&nbsp;</td>

            <td>&nbsp;</td>

        </tr>

        <tr>

            <td>&nbsp;</td>

            <td>&nbsp;</td>

        </tr>

        <tr>

            <td>&nbsp;</td>

            <td>&nbsp;</td>

        </tr>

    </tbody>

</table>

Jetzt verstehe ich nichts mehr. Wo kommt dieses padding her?


Alle Zeitangaben in WEZ +2. Es ist jetzt 04:19 Uhr.

Powered by vBulletin® Version 3.8.11 (Deutsch)
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

© Dirk H. 2003 - 2023