farbige links

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    ah ok. nettes battle. ich hab das jetzt so probiert:

    css:

    HTML Code:
    <style type="text/css">
    body,td,th {
        font-family: Verdana, Geneva, sans-serif;
        font-size: 12px;
        color: #000;
    }
    body {
        background-color: #FFF;
    }
    a {
        font-size: 12px;
        color: #000;
        font-weight: bold;
    }
    a:link {
        text-decoration: none;
    }
    a:visited {
        text-decoration: none;
        color: #000;
    }
    a:hover {
        text-decoration: none;
        color: #09C;
    }
    .active {
        color: #09C;
    }
    </style>
    menü:

    PHP Code:
    <table width="100%">
      <tr>
        <td width="79%" height="10"><strong><a <? if ($_GET['page'] == "start") echo "class='active'"; ?> href="index.php?page=start">home</a></strong></td>
      </tr>
      <tr>
        <td height="10"><strong><a <? if ($_GET['page'] == "music") echo "class='active'"; ?> href="index.php?page=music">music</a></strong></td>
      </tr>
    </table>

    funktioniert net. also beide varianten. mach ich da noch was falsch?

    Comment


    • #17
      Originally posted by partytheprey View Post
      funktioniert net. also beide varianten. mach ich da noch was falsch?
      Das, was du gerade massiv falsch machst, ist "funzt nich" mit einer brauchbaren Problembeschreibung zu verwechseln.
      I don't believe in rebirth. Actually, I never did in my whole lives.

      Comment


      • #18
        Originally posted by partytheprey View Post
        funktioniert net. also beide varianten. mach ich da noch was falsch?
        a.visited überdeckt .active (SELFHTML: Stylesheets / CSS-Formate definieren / Kaskade - Anwendung von Stylesheets auf Dokumente)
        [COLOR="DarkSlateGray"]Hast du die [COLOR="DarkSlateGray"]Grundlagen zur Fehlersuche[/color] gelesen? Hast du Code-Tags benutzt?
        Hast du als URL oder Domain-Beispiele example.com, example.net oder example.org benutzt?
        Super, danke!
        [/COLOR]

        Comment


        • #19
          sehr geil. hat funktioniert. danke das ihr so große gedult hattet.

          Comment

          Working...
          X