[HTML] cellpadding in tabellen?!?!?

Dieses Thema im Forum "Webentwicklung" wurde erstellt von encud, 20. Dezember 2006 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 20. Dezember 2006
    cellpadding in tabellen?!?!?

    Hallo!!
    Habe ein Problem?!?!?
    Ich will in meiner Tabelle einen <td> tage mit cellpadding="10" haben...
    Wenn das genau so mache wie, wenn ich das in ner ganzen Tabelle machen will, funktioniert das net :
    HTML:
    <td cellpadding="10" cellspacing="0">
    Wie mache ich das sonst???
     
  2. 20. Dezember 2006
    AW: cellpadding in tabellen?!?!?

    da musste CSS benutzen

    style="padding-left: 10px" zb oder right down top....
     
  3. 20. Dezember 2006
    AW: cellpadding in tabellen?!?!?

    am besten html lernen, cellpadding und cellspacing kann nur in dem <table> tagg ferstegelgt werden. wenn du aber nur in einer td ein padding haben willst machst du das mit css

    Code:
    <html>
    <head>
    <style type="text/css">
     <!--
    .tede {
    height: 30px;
    padding-top: 5px;
    padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 5px;
    }
    -->
    </style>
    </head>
    
    <body>
    <table>
     <tr>
     <td class="tede"></td>
     </tr>
    </table>
    </body>
    </html>
    
    //edit: hab eben den anderen thread gelesen...

    nimm mal diese table her:

    HTML:
    <html>
    <head>
    <style type="text/css">
     <!--
    .tablea {
    border: 1px solid #farbe
    }
    -->
    </style>
    </head>
    <table cellpadding="5" cellspacing="1" class="tablea" border="1" bordercolor="#farbe">
     <tr>
     <td></td>
     </tr>
    </table>
    </body>
    </html>
    
     
  4. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.