[CSS] Button Problem

Dieses Thema im Forum "Webentwicklung" wurde erstellt von banstylez, 11. Mai 2010 .

Schlagworte:
Status des Themas:
Es sind keine weiteren Antworten möglich.
  1. 11. Mai 2010
    Also ich habe folgendes Problem, wenn ich diesen Code in die index.php einbaue, dann wird der Button "Autohaus" farblich dargestellt wie es sich gehört.

    Code:
    <style type="text/css"> 
    a.button {
     font-family:Verdana;
     font-size:12px;
     color: #FFD700;
     background-Color: #4169E1;
     border-left: 2px solid #CCCCCC;
     border-top: 2px solid #CCCCCC;
     border-right: 3px solid #000000;
     border-bottom: 3px solid #000000;
     text-decoration: none;
     padding: 3px;
     text-align: center;
    }
    
    a.button:hover {
     Color: #000000;
     background-Color: #FFD700;
     border-left: 2px solid #000000;
     border-top: 2px solid #000000;
     border-right: 3px solid #cccccc;
     border-bottom: 3px solid #cccccc;
     text-decoration: none;
    }
    </style>
    
    <a href="#" class="button">Bilder</a>
    

    Wenn ich den code aber in die style.css knalle (ausser <style type="text/css"> </style>), dann verschwindet die Farbe und der Button und es ist ein normaler Link.

    Jemand ne Ahnung wodran das liegen könnte ?
     
  2. 11. Mai 2010
    AW: [CSS] Button Problem

    Haste denn das CSS file auch in der index.php angehängt ?
     
  3. 11. Mai 2010
    AW: [CSS] Button Problem

    du musst deine style.css dann auch mit nem <link> oder <style>@import einbinden. hast du das gemacht?
     
  4. 11. Mai 2010
    AW: [CSS] Button Problem


    Sorry bin eher net so der Coder

    Ich habe sowas noch nie gemacht :-/

    Code:
    <link rel="stylesheet" href="style.css" type="text/css" />
    
    Gehts dann so ? Kanns gerade leider selber nicht testen
     
  5. Video Script

    Videos zum Themenbereich

    * gefundene Videos auf YouTube, anhand der Überschrift.