Bestimmten Teil Einer Website Von Style Ausschließen
#1
geschrieben 31. Januar 2006 - 13:01
ich möchte auf einer Webseite eine Tabelle vom Style ausschließen oder bzw. der Tabelle einen anderen Style zuweisen. Wie mache ich das?
Anzeige
#2
geschrieben 31. Januar 2006 - 13:03
Mit oder ohne css?
Mit css
table{deine angaben}
#3
geschrieben 31. Januar 2006 - 13:05
aber für Tabellen habe ich bereits ein style definiert
#4
geschrieben 31. Januar 2006 - 13:08
<div id=tabelle"> <table> x x x</table> </div>
und schreibst dann im css code
#tabelle table{}
Dann gelten diese angaben nur für tabellen die aud den container tabelle folgen
oder du gibst der tabelle eine ID, das geht auch
<table id="y">
ist geschmackssache
Dieser Beitrag wurde von Flo bearbeitet: 31. Januar 2006 - 13:12
#6
geschrieben 31. Januar 2006 - 13:31
<table border="0" width="735" height="10" id="tablle"> <tr> <td align="left" valign="top"> </td> </tr> </table>
#tablle A
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: black;
}
#tablle Body
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: black;
{
Ist es so richtig? Weil es funktioniert nicht!
Dieser Beitrag wurde von Skiller bearbeitet: 31. Januar 2006 - 13:34
#7
geschrieben 31. Januar 2006 - 13:34
<div id="tabelle"> <table border="0" width="735" height="10"> <tr> <td align="left" valign="top"> </td> </tr> </table> </div>
Dieser Beitrag wurde von Flo bearbeitet: 31. Januar 2006 - 13:55
#8
geschrieben 31. Januar 2006 - 13:54
#9
geschrieben 31. Januar 2006 - 13:56
#10
geschrieben 31. Januar 2006 - 14:02
<table border="0" width="735" height="10">
<tr>
<div id="tablle"><td align="left" valign="top" nowrap> <?php
$sitegen_id = 95;
$mh_start_id = 6992;
$mh_mode = 9;
$mh_spacer = " | ";
$mh_end = " :";
include("/domains/include/sitegen_dyn/sg_menu_hor.inc");
?></td> </div>
</tr>
</table>
#11
geschrieben 31. Januar 2006 - 14:04
Außerdem solltest du mal überlegen ob es sinvollist mit Tabellen dein design zu machen, ich denke Container wären besser.
Dieser Beitrag wurde von Flo bearbeitet: 31. Januar 2006 - 14:04
#12
geschrieben 31. Januar 2006 - 14:09
<div id="tablle"><table border="0" width="735" height="10">
<tr>
<td align="left" valign="top" nowrap> <?php
$sitegen_id = 95;
$mh_start_id = 6992;
$mh_mode = 9;
$mh_spacer = " | ";
$mh_end = " :";
include("/domains/include/sitegen_dyn/sg_menu_hor.inc");
?></td>
</tr>
</table></div>
#13
geschrieben 31. Januar 2006 - 14:12
Scheint mir nicht so
Du solltest dir mal www.selfhtml.org anschauen.
Ist das denn der gesammte code der Webseite?
Und was genau geht denn nicht? Den css code will ich auch sehen
#14
geschrieben 31. Januar 2006 - 14:16
<html>
<head>
<?php
$sitegen_id = 95;
//Meta Tags einbinden
include("/domains/include/sitegen_dyn/sg_meta.inc");
//StyleSheet-Datei einbinden
echo("<LINK HREF=\"style.php3?sitegen_id=" . $sitegen_id . "&start_id=" . $start_id . "¤t_id=" . $current_id . "\" rel=\"styleSheet\" TYPE=\"text/css\">");
?>
</head>
<body background="images/hintergrund.gif">
<div align="center">
<table cellpadding="0" cellspacing="0" width="800" height="600" id="tablle">
<!-- MSTableType="layout" -->
<tr>
<td valign="bottom" background="images/header.gif" align="center">
<div id="tablle"><table border="0" width="735" height="10">
<tr>
<td align="left" valign="top" nowrap> <?php
$sitegen_id = 95;
$mh_start_id = 6992;
$mh_mode = 9;
$mh_spacer = " | ";
$mh_end = " :";
include("/domains/include/sitegen_dyn/sg_menu_hor.inc");
?></td>
</tr>
</table></div>
</td>
<td height="156"> </td>
</tr>
<tr>
<td valign="top" background="images/navigation.gif" align="center">
</td>
<td height="20"></td>
</tr>
<tr>
<td valign="top" background="images/mainoben.gif">
<!-- MSCellType="empty" -->
</td>
<td height="23"> </td>
</tr>
<tr>
<td valign="top" background="images/mainmitte.gif" align="center">
<table border="0" width="712" height="10" id="table2">
<tr>
<td align="left"> <?php
$start_id = 6992;
include("/domains/include/sitegen_dyn/sg_dynamic.inc");
?></td>
</tr>
</table>
</td>
<td height="326"> </td>
</tr>
<tr>
<td valign="top" background="images/mainunten.gif">
<!-- MSCellType="empty" -->
</td>
<td height="40"> </td>
</tr>
<tr>
<td width="759"> </td>
<td height="35" width="41"> </td>
</tr>
</table>
</div>
</body>
</html>
Der Stylesheet
<?
//***** Style Sheet Einstellungen (-Datei) für SiteGen dynamic einbinden *****
include("/domains/include/sitegen_dyn/sg_style_sheet.inc");
?>
#tablle A
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: Black;
}
#tablle Body
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: Black;
{
A:LINK
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: white;
}
A:VISITED
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: white;
}
A:ACTIVE
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: #E70000;
}
A:HOVER
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: #E70000;
}
A.menu:LINK
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
text-decoration: none;
color: white;
}
A.menu:VISITED
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
text-decoration: none;
color: white;
}
A.menu:ACTIVE
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
text-decoration: none;
color: white;
}
A.menu:HOVER
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
text-decoration: none;
background: E70000;
color: #E70000;
}
BODY
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
text-decoration: none;
color: white;
}
B
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
text-decoration: none;
color: white;
}
SPAN.small
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: white;
}
B.small
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 8pt;
font-weight: bold;
text-decoration: none;
color: white;
}
INPUT.search
{
border-style: solid;
font-family: Verdana, Helvetica, sans-serif;
font-size: 8pt;
font-weight: normal;
text-decoration: none;
color: #E70000;
}
TD
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: normal;
text-decoration: none;
color: white;
}
TH
{
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
text-decoration: none;
color: white;
}
SPAN.datum
{
font-family: Verdana, Helvetica, sans-serif;
font-size: 9pt;
font-weight: normal;
text-decoration: none;
color: white;
}
form
.searchnew
{ background-color:#FFFFFF; border-style: solid; border-width: 1px; border-color: #FF1D1D; }
Ich arbeite mit dem CMS Sitegen-Dynamic
#15
geschrieben 31. Januar 2006 - 14:18
Da fehlt zum Beispiel schon mal der Docetype

Hilfe
Neues Thema
Antworten


Nach oben


