[css] Pakt de sheet niet *

Pagina: 1
Acties:

  • Mastermind
  • Registratie: Februari 2000
  • Laatst online: 23:09
Ik heb een pagina die met een CSS de opmaak bepaalt, echter binnen de <?PHP tags, maakt hij het lettertype gewoon weer groot!
Hij erft toch gewoon ook die CSS?
Kan iemand de fout zien, want ik ontdek niet waar het aan ligt. De site is www.super11.f2s.com

als ik er font-family: verdana (heb ik er uitgehaald)
in zet, dan pakt ie het wel binnen de php tags, echter de font size neemt ie niet mee :?
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Linx{
    color : #000080;
    text-decoration : blink;
    
}

BODY {
    background-color : #EAE4E4;
    color : #000080;
    font-size:14px;
    
    
}

A:ACTIVE {
    color : #000080;
    
}

A {
    color : #000080;
    text-decoration: none;
}

A, A:VISITED {
    color : #000080;

}

A:HOVER {
    color : #2DD3D1;

Verwijderd

huh :?

  • Scorpion
  • Registratie: April 2000
  • Laatst online: 18-01-2024

Scorpion

not to lame to read BitchX.doc

php tags hebben er niets mee te maken iig.
dit is server-side. css&html zijn client-side, dus er zit iets verkeerd in je html-output.

Verwijderd

voeg maar eens gewoon een FONT-FAMILY toe aan je css bij body, dan werkt het wel :9

(oftewel je zit in verkeerde forum ;) )

  • Mastermind
  • Registratie: Februari 2000
  • Laatst online: 23:09
Op woensdag 06 februari 2002 13:36 schreef woeitje het volgende:
voeg maar eens gewoon een FONT-FAMILY toe aan je css bij body, dan werkt het wel :9

(oftewel je zit in verkeerde forum ;) )
Ja, die had ik er in, en dat werkte. En de tekst die hij bij de PHP genereert maakt hij inderdaad Verdana, maar de font-size niet!

zelfs expliciet
echo('<font face="Verdana" size="1">');

helpt niet.

  • chem
  • Registratie: Oktober 2000
  • Laatst online: 27-08 13:53

chem

Reist de wereld rond

heeft niks met PHP te maken
move naar W&G

Klaar voor een nieuwe uitdaging.


  • Hangloozz
  • Registratie: Juli 1999
  • Laatst online: 13-07 17:24

Hangloozz

{ @$%&# }

die f2s is weer eens down dus kan nix zien..

heb je soms tabellen in je doc staan?
want voor < TD>'s moet je het dan ook nog apart aangeven, of een P aanmaken en die gebruiken.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<table>
<tr>
<td class="jouwnaam">blaat</td>
</tr>
</table>

of

<table>
<tr>
<td><p>blaat</p></td>
</tr>
</table>

en dan in je sheet:

body, td {bladiebla}

of
body,p {bladiebla}

Waarom schrijf je je classes in kapitalen :?

Is Linx een standaardelement? zo nee dan moet het .Linx zijn

www.jurgroessen.nl


  • Dennis
  • Registratie: Februari 2001
  • Laatst online: 23:41
Ik gok dat je tekst in een tabel staat. Maak van

body
{
bla
}


eens het volgende:

body, td
{
bla
}

  • Mastermind
  • Registratie: Februari 2000
  • Laatst online: 23:09
Ok, ik denk inderdaad dat het daar aan ligt!
Bedankt!

Maar f2s is idd weer plat dus kan ik niks veranderen! :(
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
    <title>Speler bekijken 2</title>
    <link rel="STYLESHEET" type="text/css" href="layout.css">
</head>

<body>
<?php
  $con=mysql_connect ("db.super11.f2s.com:3306","super11","********");
  $db="super11";    
  if($speler1!=="alles")
  {
    $query="select * from Spelers where Spelerid=".$speler1;
    $result=mysql_db_query($db,$query); 
    $row = mysql_fetch_array($result);  
    $naam=$row["Naam"];
    $linie=substr($row["Linie"],1);
    $ploeg=$row["Ploeg"];
    $geel=$row["Geel"];
    $rood=$row["Rood"];
    $goals=$row["Goals"];
    $totaal=$row["Punten"];
    for($f=1;$f<35;$f++)
    {
    $punten[$f]=$row["W".$f];
    }
    $query="select Gespeeld from Ploegen where Naam='".$ploeg."'";
    $result=mysql_db_query($db,$query); 
    $row = mysql_fetch_array($result);  
    $gespeeld=$row["Gespeeld"];
    if($gespeeld>15) echo('<table width="250%">'); else echo('<table>');
    echo('<font face="Verdana" size="1">');  
    echo('<tr><th align="left">Speler</th><th align="left">Linie</th><th align="left">Ploeg</th><th bgcolor="Yellow">&nbsp;</th><th>&nbsp;</th><th bgcolor="Red">&nbsp;</th><th>&nbsp;</th><th>Gls</th><th>&nbsp;</th><th>Tot</th><th>&nbsp;</th>');
    for($f=1;$f<=$gespeeld;$f++) if($f<10) echo('<th>'.$f.'&nbsp;</th>'); else echo('<th>'.$f.'</th>');
    echo('</tr>');
    echo('<tr><td>'.$naam.'</td><td>'.$linie.'</td><td>'.$ploeg.'</td><td>'.$geel.'</td><td>&nbsp;</td><td>'.$rood.'</td><td>&nbsp;</td><td align="center">'.$goals.'</td><td>&nbsp;</td><td>'.$totaal.'</td><td>&nbsp;</td>');
    for($h=1;$h<=$gespeeld;$h++)
    {
        if($punten[$h]==88) echo('<td align="center">x</td>');
    elseif($punten[$h]==99) echo('<td align="center">&nbsp;</td>');
    else echo('<td align="center">'.$punten[$h].'</td>');
    }
    echo('</tr>');
  }
  else
  {
    echo('<table cellpadding="0" cellspacing="0" width="250%"><tr><th align="left">Speler</th><th align="left">Linie</th><th align="left">Ploeg</th><th bgcolor="Yellow">&nbsp;</th><th>&nbsp;</th><th bgcolor="Red">&nbsp;</th><th>&nbsp;</th><th>Gls</th><th>&nbsp;</th><th>Tot</th><th>&nbsp;</th>');
    for($f=1;$f<35;$f++) if($f<10) echo('<th>'.$f.'&nbsp;</th>'); else echo('<th>'.$f.'</th>');
    echo('</tr>');
    $query="select Naam,Gespeeld from Ploegen";
    $result=mysql_db_query($db,$query); 
    for($p=1;$p<=mysql_num_rows($result);$p++)
    {
    $row = mysql_fetch_array($result);  
    $ploegen[$p]["Naam"]=$row["Naam"];
    $ploegen[$p]["Gespeeld"]=$row["Gespeeld"];
    }
    $query="select * from Spelers order by Punten DESC,Ploeg,Linie";
    $result=mysql_db_query($db,$query); 
    for($i=1;$i<=mysql_num_rows($result);$i++)
    {
    $row = mysql_fetch_array($result);  
    $spelers[$i]["Naam"]=$row["Naam"];
    $spelers[$i]["Linie"]=substr($row["Linie"],1);
    $spelers[$i]["Ploeg"]=$row["Ploeg"];
    $spelers[$i]["Geel"]=$row["Geel"];
    $spelers[$i]["Rood"]=$row["Rood"];
    $spelers[$i]["Goals"]=$row["Goals"];
    $spelers[$i]["Totaal"]=$row["Punten"];
    for($f=1;$f<35;$f++)
    {
      $spelers[$i]["Punten"][$f]=$row["W".$f];
    }
    for($q=1;$q<=count($ploegen);$q++)
    {
      if($spelers[$i]["Ploeg"]==$ploegen[$q]["Naam"]) 
     {
      $spelers[$i]["Gespeeld"]=$ploegen[$q]["Gespeeld"];
    }
    }
    echo('<tr><td>'.$spelers[$i]["Naam"].'</td><td>'.$spelers[$i]["Linie"].'</td><td>'.$spelers[$i]["Ploeg"].'</td><td>'.$spelers[$i]["Geel"].'</td><td>&nbsp;</td><td>'.$spelers[$i]["Rood"].'</td><td>&nbsp;</td><td align="center">'.$spelers[$i]["Goals"].'</td><td>&nbsp;</td><td>'.$spelers[$i]["Totaal"].'</td><td>&nbsp;</td>');
    for($h=1;$h<=$spelers[$i]["Gespeeld"];$h++)
    {
        if($spelers[$i]["Punten"][$h]==88) echo('<td align="center">x</td>');
    elseif($spelers[$i]["Punten"][$h]==99) echo('<td align="center">&nbsp;</td>');
    else echo('<td align="center">'.$spelers[$i]["Punten"][$h].'</td>');
    }
    echo('</tr>');     
    }
  }
  mysql_close ($con);
echo('</font></table>');

?>

</body>
</html>
Pagina: 1