Dar estilo a nuestros button

En vikiworks veo otra sencilla técnica para mejorar los botones de publicación de nuestros formularios y lograr así adaptar completamente todo a nuestro diseño, aun dependiendo desde donde naveguen nuestros usuarios.

Ver demo - Descargar ejemplo

 

HTML:
  1. <button value="submit" class="submitBtn"><span>Publicar</span></button>

CSS:
  1. button {border:0; cursor:pointer; font-weight:bold; padding:0 20px 0 0; text-align:center;width:auto; overflow:visible;}
  2. button span {position:relative; display:block; white-space:nowrap; padding:0 0 0 20px;}
  3. button.submitBtn {background:url(images/btn_blue_right.gif) right no-repeat; font-size:1.2em;}
  4. button.submitBtn span {height:30px; line-height:30px;background:url(images/btn_blue_left.gif) left no-repeat;color:#fff;}
  5. button.submitBtn:hover {background:url(images/btn_blue_right_hover.gif) right no-repeat;}
  6. button.submitBtn:hover span {background:url(images/btn_blue_left_hover.gif) left no-repeat;}

  1. User Gravatar

    links for 2007-09-18 « D e j a m e S e r said,

    Wrote on September 18, 2007 @ 12:19

    [...] Dar estilo a nuestros button « Xyberneticos (tags: button) [...]

  2. User Gravatar

    Tip: Dale estilo a tus botones | ConocimientosWeb.es said,

    Wrote on September 18, 2007 @ 15:19

    [...] | Archivos auxiliares Demo en Xyberneticos | Clic aquí Vía | Xyberneticos Tags: botones, CSS, Descargas, Diseño Web, Efectos, tipComparte este [...]

  3. User Gravatar

    TheDaVis Blog — Dar estilo a los button de nuestra web said,

    Wrote on September 24, 2007 @ 11:44

    [...] Fuente: Xyberneticos [...]

  4. User Gravatar

    WebDevBookmarks: Botones « D e j a m e S e r said,

    Wrote on October 14, 2007 @ 14:25

    [...] Dar estilo a nuestros button vía Xyberneticos [...]

  5. User Gravatar

    Dar estilo a los button de nuestra web - TheDaVis Blog said,

    Wrote on April 19, 2008 @ 13:55

    [...] Fuente: Xyberneticos [...]

Seguir comentarios por RSS · TrackBack URI

Nombre: (Necesario)

E-mail: (Necesario)

Website:

Comment: