Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/11/2011, 15:35
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Boton call to action forma de flecha

Experimenta para ver que otros efectos se pueden conseguir
Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>Flechas con css</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. <style type="text/css">
  8. /*<![CDATA[*/
  9.  
  10. /* estilos comunes */
  11. .flecha-arriba,
  12. .flecha-izquierda,
  13. .flecha-derecha,
  14. .flecha-abajo {
  15.  border-style: dashed;
  16.  border-color: transparent;
  17.  border-width: 0.53em;
  18.  display: -moz-inline-box;
  19.  display: inline-block;
  20.  /* manejas el tamaño de la fuente para el tamaño de las flechas */
  21.  font-size: 50px;
  22.  height: 0;
  23.  line-height: 0;
  24.  position: relative;
  25.  vertical-align: middle;
  26.  width: 0;
  27. }
  28.  
  29. /* bordes para las cuatro direcciones */
  30. .flecha-arriba {
  31.  border-bottom-width: 1em;
  32.  border-bottom-style: solid;
  33.  border-bottom-color: #005100;
  34.  bottom: 0.25em;
  35. }
  36. .flecha-izquierda {
  37.  border-right-width: 1em;
  38.  border-right-style: solid;
  39.  border-right-color: #005100;
  40.  right: 0.25em;
  41. }
  42. .flecha-derecha {
  43.  border-left-width: 1em;
  44.  border-left-style: solid;
  45.  border-left-color: #005100;
  46.  left: 0.25em;
  47. }
  48.  .flecha-abajo {
  49.  border-top-width: 1em;
  50.  border-top-style: solid;
  51.  border-top-color: #005100;
  52.  top: 0.25em;
  53. }
  54.  
  55. /* otro método, hay que aplicarlo sobre un elemento de bloque (div) */
  56. .flecha-multi {
  57.  border-color: red green blue orange;
  58.  border-style:solid;
  59.  border-width:20px;
  60.  width:0;
  61.  height:0;
  62. }
  63.  
  64. .flecha-multi-derecha {
  65.  border-color: transparent transparent transparent orange;
  66.  border-style:solid;
  67.  border-width:20px;
  68.  width:0;
  69.  height:0;
  70. }
  71.  
  72. .flecha-multi-arriba {
  73.  border-color: transparent transparent blue transparent;
  74.  border-style:solid;
  75.  border-width:20px;
  76.  width:0;
  77.  height:0;
  78. }
  79.  
  80.  
  81. input{
  82. background-color: transparent;
  83. color: transparent;
  84. }
  85. /*]]>*/
  86. </head>
  87.  
  88. <div>
  89. <p>Flechas</p>
  90. <span class="flecha-arriba"><!-- flecha --></span>
  91. <span class="flecha-izquierda"><!-- flecha --></span>
  92. <span class="flecha-derecha"><!-- flecha --></span>
  93. <span class="flecha-abajo"><!-- flecha --></span>
  94.  
  95. <p>Input</p>
  96. <form action="x.php">
  97. <p><input type="submit" value="." class="flecha-derecha" /></p>
  98. </form>
  99.  
  100. </div>
  101.  
  102. <div>
  103. <p>Otro método<br /></p>
  104.  
  105. <div class="flecha-multi"><!-- flecha --></div>
  106. <br /><br />
  107. <div class="flecha-multi-derecha"><!-- flecha --></div>
  108. <br /><br />
  109. <div class="flecha-multi-arriba"><!-- flecha --></div>
  110.  
  111. <p>Input</p>
  112. <form action="x.php">
  113. <p><input type="submit" value="." class="flecha-multi-derecha" /></p>
  114. </form>
  115.  
  116. </div>
  117. </body>
  118. </html>

Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.