Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Come inserire in un sito un bottone html con questo stile CSS ? Non so come collegare i due codici :(

    Salve a tutti,
    premetto che non so niente di CSS , ho un sito wordpress e desidero inserire in una pagina un bottone, attraverso un sito ho creato il bottone con il corrispondente codice CSS

    codice:
    .button {
       border: 2px solid #a60f0f;
       background: #3e779d;
       background: -webkit-gradient(linear, left top, left bottom, from(#65a9d7), to(#3e779d));
       background: -webkit-linear-gradient(top, #65a9d7, #3e779d);
       background: -moz-linear-gradient(top, #65a9d7, #3e779d);
       background: -ms-linear-gradient(top, #65a9d7, #3e779d);
       background: -o-linear-gradient(top, #65a9d7, #3e779d);
       background-image: -ms-linear-gradient(top, #65a9d7 0%, #3e779d 100%);
       padding: 13px 26px;
       -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
       border-radius: 12px;
       -webkit-box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
       -moz-box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
       box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
       text-shadow: #7ea4bd 0 1px 0;
       color: #08053b;
       font-size: 24px;
       font-family: helvetica, serif;
       text-decoration: none;
       vertical-align: middle;
       }
    .button:hover {
       border: 2px solid #0000eb;
       text-shadow: #7ea4bd 0 1px 0;
       background: #3e779d;
       background: -webkit-gradient(linear, left top, left bottom, from(#5c9cc4), to(#3e779d));
       background: -webkit-linear-gradient(top, #5c9cc4, #3e779d);
       background: -moz-linear-gradient(top, #5c9cc4, #3e779d);
       background: -ms-linear-gradient(top, #5c9cc4, #3e779d);
       background: -o-linear-gradient(top, #5c9cc4, #3e779d);
       background-image: -ms-linear-gradient(top, #5c9cc4 0%, #3e779d 100%);
       color: #ff0000;
       }
    .button:active {
       text-shadow: #183140 0 1px 0;
       border: 2px solid #0a3c59;
       background: #65a9d7;
       background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#3e779d));
       background: -webkit-linear-gradient(top, #3e779d, #65a9d7);
       background: -moz-linear-gradient(top, #3e779d, #65a9d7);
       background: -ms-linear-gradient(top, #3e779d, #65a9d7);
       background: -o-linear-gradient(top, #3e779d, #65a9d7);
       background-image: -ms-linear-gradient(top, #3e779d 0%, #65a9d7 100%);
       color: #fff;
       }
    
    potrei sapere da voi l'esatto codice da inserire nella pagina per avere il bottone, il codice html sarebbe questo
    codice HTML:
    <a href='#' class='button'>Ricarica Account</a>
    Ma non so proprio come collegare i due linguaggi tra loro
    Grazie a tutti.

  2. #2
    codice:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Documento senza titolo</title>
    <style type="text/css">
    .button {
       border: 2px solid #a60f0f;
       background: #3e779d;
       background: -webkit-gradient(linear, left top, left bottom, from(#65a9d7), to(#3e779d));
       background: -webkit-linear-gradient(top, #65a9d7, #3e779d);
       background: -moz-linear-gradient(top, #65a9d7, #3e779d);
       background: -ms-linear-gradient(top, #65a9d7, #3e779d);
       background: -o-linear-gradient(top, #65a9d7, #3e779d);
       background-image: -ms-linear-gradient(top, #65a9d7 0%, #3e779d 100%);
       padding: 13px 26px;
       -webkit-border-radius: 12px;
       -moz-border-radius: 12px;
       border-radius: 12px;
       -webkit-box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
       -moz-box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
       box-shadow: rgba(255,255,255,0.4) 0 0px 0, inset rgba(255,255,255,0.4) 0 1px 0;
       text-shadow: #7ea4bd 0 1px 0;
       color: #08053b;
       font-size: 24px;
       font-family: helvetica, serif;
       text-decoration: none;
       vertical-align: middle;
       }
    .button:hover {
       border: 2px solid #0000eb;
       text-shadow: #7ea4bd 0 1px 0;
       background: #3e779d;
       background: -webkit-gradient(linear, left top, left bottom, from(#5c9cc4), to(#3e779d));
       background: -webkit-linear-gradient(top, #5c9cc4, #3e779d);
       background: -moz-linear-gradient(top, #5c9cc4, #3e779d);
       background: -ms-linear-gradient(top, #5c9cc4, #3e779d);
       background: -o-linear-gradient(top, #5c9cc4, #3e779d);
       background-image: -ms-linear-gradient(top, #5c9cc4 0%, #3e779d 100%);
       color: #ff0000;
       }
    .button:active {
       text-shadow: #183140 0 1px 0;
       border: 2px solid #0a3c59;
       background: #65a9d7;
       background: -webkit-gradient(linear, left top, left bottom, from(#3e779d), to(#3e779d));
       background: -webkit-linear-gradient(top, #3e779d, #65a9d7);
       background: -moz-linear-gradient(top, #3e779d, #65a9d7);
       background: -ms-linear-gradient(top, #3e779d, #65a9d7);
       background: -o-linear-gradient(top, #3e779d, #65a9d7);
       background-image: -ms-linear-gradient(top, #3e779d 0%, #65a9d7 100%);
       color: #fff;
       }
    </style>
    </head>
    
    <body>
    <a href='#' class='button'>Ricarica Account</a>
    </body>
    </html>
    “Che le cose siano cosi, non vuol dire che debbano andare così. Solo che quando si tratta di rimboccarsi le maniche e incominciare a cambiare, vi è un prezzo da pagare. Ed è allora che la stragrande maggioranza preferisce lamentarsi più che fare”.

    Giovanni Falcone

Tag per questa discussione

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.