Warum kostenlos registrieren?

Nur als registriertes Mitglied hast Du vollen Zugriff auf alle Funktionen unserer Website. So kannst Du eigene Fragen stellen und hast die volle Übersicht über neue interessante Themen im Forum.
Jetzt kostenlos registrieren.

Login


css funktioniert net....

Fragen oder Probleme mit HTML, PHP oder CSS?

css funktioniert net....

Beitragvon 4-- am 30.06.2006, 06:30

hi leutz... also.. ich mach grad ne Frage, und natürlich mit css... aber im folgendem css code funktionieren dann nur die code: ".copyright", und die unteren vier zeilen mit dem link... nichtmal "body" funktioniert... warum?

csscode:
Code: Alles auswählen
<style type="text/css">
<!--
body {
  font-family: "verdana";
  color: #FFFFFF;
  font-size: 10pt;
  text-decoration: none;
  text-align: left;
  background-color: #FF0000;
  scrollbar-3dlight-color:#F6A727;
  scrollbar-arrow-color:#F6A727;
  scrollbar-face-color:#000000;
  scrollbar-track-color:#F6A727;
  scrollbar-darkshadow-color:#000000;
  scrollbar-highlight-color:#F6A727;
  scrollbar-shadow-color:#F6A727;
}
table {
  border: 3px;
  bordercolor: #FF0000;
  cellspacing: 0;
  cellpadding: 0; 
}
td {
  font-family: "verdana";
  color: #FFFFFF;
  font-size: 10pt;
  text-decoration: none;
  text-align: left;
  vertical-align: top;
}
.copyright {
  font-family: "verdana";
  color: #000000;
  font-size: 8pt;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
}

  a:link { color:#000000; text-decoration:underline ; }
  a:visited { color:#000000; text-decoration:none; }
  a:active { color:#000000; text-decoration:none; }
  a:hover { color:#000000; text-decoration: overline; }

//-->
</style>


QTcode:
Code: Alles auswählen
<link rel="stylesheet" type="text/css" href="style/cssstyle/style.css">
<link rel="shortcut icon" href="style/browserico/browser.ico">
</head>
<body>
<table>
      <tr>
            <td colspan="3" width="1000">&nbsp;</td>
      </tr>
      <tr>
            <td colspan="3" width="1000">&nbsp;</td>
      </tr>
      <tr>
            <td width="200">&nbsp;</td>
            <td width="800">&nbsp;</td>
            <td width="200">&nbsp;</td>
      </tr>
      <tr>
            <td width="200">&nbsp;</td>
            <td width="800">&nbsp;</td>
            <td width="200">&nbsp;</td>
      </tr>
      <tr>
            <td width="200" align="left">&nbsp;</td>
            <td class="copyright" width="800">&copy; Copyright by <a href="mailto:extreme-zone@gmx.de" title="M@il an Raph">Raph</a></td>
            <td width="200" align="right">&nbsp;</td>
      </tr>
</table>
4--
 
Beiträge: 292
Registriert: 06.06.2006, 19:30
Wohnort: Amberg


Re: css funkt net....

Beitragvon lissners am 01.07.2006, 14:01

raph_ hat geschrieben:hi leutz... also.. ich mach grad ne age, und natürlich mit css... aber im folgendem css code funktionieren dann nur die code: ".copyright", und die unteren vier zeilen mit dem link... nichtmal "body" funktioniert... warum?

csscode:
Code: Alles auswählen
<style type="text/css">
<!--
body {
  font-family: "verdana";
  color: #FFFFFF;
  font-size: 10pt;
  text-decoration: none;
  text-align: left;
  background-color: #FF0000;
  scrollbar-3dlight-color:#F6A727;
  scrollbar-arrow-color:#F6A727;
  scrollbar-face-color:#000000;
  scrollbar-track-color:#F6A727;
  scrollbar-darkshadow-color:#000000;
  scrollbar-highlight-color:#F6A727;
  scrollbar-shadow-color:#F6A727;
}
table {
  border: 3px;
  bordercolor: #FF0000;
  cellspacing: 0;
  cellpadding: 0; 
}
td {
  font-family: "verdana";
  color: #FFFFFF;
  font-size: 10pt;
  text-decoration: none;
  text-align: left;
  vertical-align: top;
}
.copyright {
  font-family: "verdana";
  color: #000000;
  font-size: 8pt;
  text-decoration: none;
  text-align: center;
  vertical-align: middle;
}

  a:link { color:#000000; text-decoration:underline ; }
  a:visited { color:#000000; text-decoration:none; }
  a:active { color:#000000; text-decoration:none; }
  a:hover { color:#000000; text-decoration: overline; }

//-->
</style>


QTcode:
Code: Alles auswählen
<link rel="stylesheet" type="text/css" href="style/cssstyle/style.css">
<link rel="shortcut icon" href="style/browserico/browser.ico">
</head>
<body>
<table>
      <tr>
            <td colspan="3" width="1000">&nbsp;</td>
      </tr>
      <tr>
            <td colspan="3" width="1000">&nbsp;</td>
      </tr>
      <tr>
            <td width="200">&nbsp;</td>
            <td width="800">&nbsp;</td>
            <td width="200">&nbsp;</td>
      </tr>
      <tr>
            <td width="200">&nbsp;</td>
            <td width="800">&nbsp;</td>
            <td width="200">&nbsp;</td>
      </tr>
      <tr>
            <td width="200" align="left">&nbsp;</td>
            <td class="copyright" width="800">&copy; Copyright by <a href="mailto:extreme-zone@gmx.de" title="M@il an Raph">Raph</a></td>
            <td width="200" align="right">&nbsp;</td>
      </tr>
</table>


Mach mal aus dem CSS code das weg: <style type="text/css"> </style>
lissners
 
Beiträge: 426
Registriert: 02.01.2006, 17:11

Beitragvon sp!n am 01.07.2006, 14:30

Ich denke, dass das css keine externe Datei ist, wenn doch hat lissners recht, dann musst du das <style> weggeben.
sp!n
 
Beiträge: 386
Registriert: 31.05.2005, 09:05
Wohnort: Wien

Beitragvon 4-- am 01.07.2006, 14:36

jo, jetz gehts! danke!
4--
 
Beiträge: 292
Registriert: 06.06.2006, 19:30
Wohnort: Amberg



Ähnliche Themen


Zurück zu HTML, PHP & Co.

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 0 Gäste