Juergens-Workshops.de Forum
Css und Tabellen - Druckversion

+- Juergens-Workshops.de Forum (https://forum.juergens-workshops.de)
+-- Forum: HTML und Co (https://forum.juergens-workshops.de/forumdisplay.php?fid=62)
+--- Forum: CSS und Javascript (https://forum.juergens-workshops.de/forumdisplay.php?fid=86)
+--- Thema: Css und Tabellen (/showthread.php?tid=19138)



Css und Tabellen - angisun - 18.07.2004

Moin,
ich habe mal Jürgens Workshop Css nachgearbeitet. (Danke Jürgen- gute Anleitung).

Wie kann ich in einer Tabelle den Abstand für Text mittels Css-Datei einbinden?

Ich habe eine Css-Datei( Abstand 10px 10px 10px 10px) geschrieben,sie in der Html-Seite eingebunden,aber das kalppt nicht beim Text in einer Tabelle.

Die Css-Datei habe ich als externe Datei eingefügt.

Gruß Angisun


Css und Tabellen - Helmut - 18.07.2004

Hi,

probier mal das aus... Den CSS Code kannste auch extern einbinden.

Code:
<style type="text/css">
<!--
.weit {
font-family: Verdana, Arial;
font-size: 12px;
color: #000000;
padding: 20px 40px 20px 40px;
background-color: #cc9933;
}

.schmal {
font-family: Verdana, Arial;
font-size: 12px;
color: #ffffff;
padding: 2px 4px 2px 4px;
background-color: #990033;
}
-->
</style>
</head>
<body>

<table cellspacing="0" cellpadding="1" border="0">
<tr>
    <td class="weit">Testtext hier mit 20, 40, 20, 40 padding</td>
</tr>
<tr>
    <td class="schmal">Testtext hier mit 2, 4, 2, 4 padding</td>
</tr>
</table>

Demo: http://www.inspire-world.de/boarduploads/padding.html

Cu Helmut