Link gestaltung

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

  • Link gestaltung

    Hi Alle :-) !!!

    Mal ne frage, wie kann ich die einzelnen eigenschaften von
    PHP-Code:
    <style type="text/css">
      
    a:link text-decoration:nonefont-weight:boldcolor:rgb(0,0,255); }
      
    a:visited text-decoration:nonefont-weight:boldcolor:rgb(0,0,255); }
      
    a:hover text-decoration:nonefont-weight:boldcolor:rgb(255,0,0); }
      
    a:active text-decoration:nonefont-weight:boldcolor:rgb(22,250,5); }
    </
    style
    in
    PHP-Code:
    <a href="<?php echo $PHP_SELF;?>" style="...">Text</a>
    aufrufen??? hab schon alle möglichen varianten probiert z.b. style="link-color:rgb(0,0,255)" das klappt aber alles nicht und die eigenschaften so definieren wie oben nur mehrere male geht nicht weil der immer die letzte def nimmt. Wenn ich style="color:rgb(0,0,255)" schreibe dann macht der das für den ganzen bereich, also link, visited, hover, active. Ich will die aber einzeln definieren wie lauten die eigenschaften da???

    Danke :-) !!!

  • #2
    PHP-Code:
    <style type="text/css">
      a:link { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
      a:visited { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
      a:hover { text-decoration:none; font-weight:bold; color:rgb(255,0,0); }
      a:active { text-decoration:none; font-weight:bold; color:rgb(22,250,5); }

      [b]dummylink[/b].a:link { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
      [b]dummylink[/b].a:visited { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
      [b]dummylink[/b].a:hover { text-decoration:none; font-weight:bold; color:rgb(255,0,0); }
      [b]dummylink[/b].a:active { text-decoration:none; font-weight:bold; color:rgb(22,250,5); }
    </style>

    <?php

        
    echo '<a href="'.$_SERVER['PHP_SELF'].'" [b]class="dummylink"[/b]>Text</a>';

    ?>
    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


    • #3
      da frag ich mich manschmal wirklich, wofür es selfhtml gibt.

      @haxe: das war nicht ganz das gesuchte. allerdings eigentlich das beste!

      Kommentar


      • #4
        Original geschrieben von TobiaZ
        da frag ich mich manschmal wirklich, wofür es selfhtml gibt.
        Da habe ich das nicht drin gefunden!!!
        Original geschrieben von TobiaZ
        @haxe: das war nicht ganz das gesuchte. allerdings eigentlich das beste!
        ist doch egal, haupsache es funktioniert !!!

        Halt noch nen fehler endekt
        es mus heissen:
        PHP-Code:
        <style type="text/css">
          a:link { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
          a:visited { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
          a:hover { text-decoration:none; font-weight:bold; color:rgb(255,0,0); }
          a:active { text-decoration:none; font-weight:bold; color:rgb(22,250,5); }

          .dummylink:a:link { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
          .dummylink:a:visited { text-decoration:none; font-weight:bold; color:rgb(0,0,255); }
          .dummylink:a:hover { text-decoration:none; font-weight:bold; color:rgb(255,0,0); }
          .dummylink:a:active { text-decoration:none; font-weight:bold; color:rgb(22,250,5); }
        </style>

        <?php

            
        echo '<a href="'.$_SERVER['PHP_SELF'].'" class="dummylink">Text</a>';

        ?>
        So OK jetzt aber

        Danke !!!
        Zuletzt geändert von Mr Agent X; 03.10.2003, 22:11.

        Kommentar


        • #5
          hauptsache zufrieden!

          Kommentar


          • #6
            Original geschrieben von TobiaZ
            @haxe: das war nicht ganz das gesuchte. allerdings eigentlich das beste!
            wie bitte will mal sonst die 4 eigenschaften im style definieren. mit ist da nix bekannt.
            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


            • #7
              Original geschrieben von Mr Agent X
              Halt noch nen fehler endekt
              ich habe es ja auch nur so aus dem kopf geschrieben und nicht getestet.
              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


              • #8
                Original geschrieben von Mr Agent X
                Halt noch nen fehler endekt
                es mus heissen: [...]
                nein, immer noch falsch.

                der css-validator wird dir sagen, was an .dummylink:a:link immer noch falsch ist.
                I don't believe in rebirth. Actually, I never did in my whole lives.

                Kommentar

                Lädt...
                X