[CSS] schriftgröße nicht einstellbar

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • [CSS] schriftgröße nicht einstellbar

    hallo @ all

    css:
    PHP-Code:
    body{
        
    text-decorationnone;
        
    colorblack;
        
    font20px Arial;
    }

    oder

    body
    {
        
    text-decorationnone;
        
    colorblack;
        
    font-familyArial;
                    
    font-size20px;
    }

    table.rahmen {
        
    border1px solid black;
        
    width35%;
    }
    .
    links{
        
    border1px dotted Black;
        
    padding-left5px;
        
    padding-top:  5px;
        
    padding-bottom5px;
    }
    .
    inhalt{
        
    border1px dotted Black;
        
    padding-left5px;
        
    padding-top:  5px;
        
    padding-bottom5px;

    quellcode:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Unbenanntes Dokument</title>
    <link href="sid.css" rel="stylesheet" type="text/css">
    </head>
    <body>
    <table class="rahmen" cellspacing="10px" align="center">
     <tr>
      <td class="links" width="100%">
       <a href="#">/.link1</a> /.link2 <br />
      </td>
     </tr>
     <tr>
      <td colspan="2" class="inhalt">
       [inhalt] <br />
      </td>
     </tr>
    </table> 
    </body>
    </html>
    aber irgendwie geht die schriftgröße nicht... mein freund hats gelöst, in dem er font-size in table.rahmen reingeschrieben hat.... bsp: www.8ung.at/tommi/

    mfg

    EDIT:
    @mrhappiness: ... hab mich verdrückt...
    Zuletzt geändert von tomstig; 17.02.2004, 20:23.
    [color=black] Important: alt bei <img> ist immer erforderlich · Strings richtig trennen/verbinden · Kiddie-Code hat keine Chance[/color]

  • #2
    schließender php-tag fehlt

    frage fehlt

    satzbau mangelhaft

    wolltest du sonst noch was wissen?
    Ich denke, also bin ich. - Einige sind trotzdem...

    Kommentar


    • #3
      mrhappiness ist ein deutschlehrer?

      Kommentar


      • #4
        sind wir das nicht alle?
        INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


        Kommentar


        • #5
          ne WIR sind klugscheisser und keine deutschlehrer ^^

          Kommentar


          • #6
            btb
            [color=black] Important: alt bei <img> ist immer erforderlich · Strings richtig trennen/verbinden · Kiddie-Code hat keine Chance[/color]

            Kommentar


            • #7
              manche browser haben so ihre probleme, wenn's um schriftgröße und tabellen geht

              die übernehmen in tabellen ncht die formatanweisungen, die du für übergeordnete elemente festgelegt hast.

              wenn du's - wie schon erwähnt - direkt in die tabelle reinschreibst, dann passt's ja
              Ich denke, also bin ich. - Einige sind trotzdem...

              Kommentar


              • #8
                wow... aber wenn man die farbe ändert, mit z.b.: color: green;
                dann macht er es auch in der tabelle grün... auch font-family lässt sich verstellen... aber nur die größe nicht....
                [color=black] Important: alt bei <img> ist immer erforderlich · Strings richtig trennen/verbinden · Kiddie-Code hat keine Chance[/color]

                Kommentar


                • #9
                  dann mach doch einfach body, td, p, div etc { font-size:20px } und gut is
                  h.a.n.d.
                  Schmalle

                  http://impressed.by
                  http://blog.schmalenberger.it



                  Wichtige Anmerkung: Ich habe keine Probleme mit Alkohol ...
                  ... nur ohne :-)

                  Kommentar


                  • #10
                    Original geschrieben von schmalle
                    dann mach doch einfach body, td, p, div etc { font-size:20px } und gut is
                    insbesondere der alte NS4 braucht das. übrigens auch für die schriftart..
                    INFO: Erst suchen, dann posten![color=red] | [/color]MANUAL(s): PHP | MySQL | HTML/JS/CSS[color=red] | [/color]NICE: GNOME Do | TESTS: Gästebuch[color=red] | [/color]IM: Jabber.org |


                    Kommentar


                    • #11
                      Bei mir hat es geklappt.

                      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                      <html>
                      <head>
                      <title>Unbenanntes Dokument</title>
                      <style type="text/css">
                      <!--
                      body{
                      text-decoration: none;
                      color: black;
                      font: 20px Arial;
                      }

                      oder

                      body{
                      text-decoration: none;
                      color: black;
                      font-family: Arial;
                      font-size: 20px;
                      }

                      table.rahmen {
                      border: 1px solid black;
                      width: 35%;
                      }
                      .links{
                      border: 1px dotted Black;
                      padding-left: 5px;
                      padding-top: 5px;
                      padding-bottom: 5px;
                      font-size: 20px;
                      }
                      .inhalt{
                      border: 1px dotted Black;
                      padding-left: 20px;
                      padding-top: 20px;
                      padding-bottom: 20px;
                      }
                      -->
                      </style>
                      </head>
                      <body>
                      <table class="rahmen" cellspacing="10px" align="center">
                      <tr>
                      <td class="links" width="100%">
                      <a href="#">/.link1</a> /.link2 <br />
                      </td>
                      </tr>
                      <tr>
                      <td colspan="2" class="inhalt">
                      [inhalt]<br />
                      </td>
                      </tr>
                      </table>
                      </body>
                      </html>
                      Mein Homepage: Click

                      Kommentar

                      Lädt...
                      X