Foros del Web » Creando para Internet » CSS »

Ajustar Tamaño a Boton

Estas en el tema de Ajustar Tamaño a Boton en el foro de CSS en Foros del Web. Hola a todos. alguien me podria ayudar a ajustar el tamaño de un boton de acuerdo al texto. le he puesto width:auto; pero aun asi ...
  #1 (permalink)  
Antiguo 23/03/2009, 16:18
Avatar de vecasita  
Fecha de Ingreso: abril-2006
Mensajes: 107
Antigüedad: 18 años
Puntos: 1
Ajustar Tamaño a Boton

Hola a todos.

alguien me podria ayudar a ajustar el tamaño de un boton de acuerdo al texto.
le he puesto width:auto;
pero aun asi el tamaño no se ajusta al texto, queda demasiado grande como si tuviera margen a la derecha, pero tambien le agregue margin-right:0px; y padding:0px; y nada...

alguna idea ?

de antemano muchas gracias
  #2 (permalink)  
Antiguo 23/03/2009, 17:03
Avatar de Mikmoro
Colaborador
 
Fecha de Ingreso: octubre-2006
Ubicación: K-pax
Mensajes: 7.228
Antigüedad: 17 años, 6 meses
Puntos: 280
Respuesta: Ajustar Tamaño a Boton

Muestra tu código HTML y CSS (o una url) y será más fácil.
__________________
Visita mi nueva web idplus.org
  #3 (permalink)  
Antiguo 24/03/2009, 09:54
Avatar de vecasita  
Fecha de Ingreso: abril-2006
Mensajes: 107
Antigüedad: 18 años
Puntos: 1
Respuesta: Ajustar Tamaño a Boton

este el codigo del Boton:
<tr>
<td colspan="2" class="Pie_Pagina" style="vertical-align:baseline ; height: 4%;">
<asp:Button ID="Btn_SubNivel1" runat="server" Text="" CssClass="Boton_Map" OnClick="Btn_SubNivel_Click" Visible="false" />
<asp:Button ID="Btn_SubNivel2" runat="server" Text="" CssClass="Boton_Map" OnClick="Btn_SubNivel_Click" Visible="false" />
<asp:Button ID="Btn_SubNivel3" runat="server" Text="" CssClass="Boton_Map" OnClick="Btn_SubNivel_Click" Visible="false" />
</td>
</tr>

y el Css:

.Boton_Map
{
background:transparent;
text-align:left;
text-decoration:underline;
border:none 0px;
vertical-align:baseline;
height:90%;
cursor:hand;
color :#FFFFFF;
font-size:12px ;
font-weight:lighter;
font-family:verdana,arial,helvetica,clean,sans-serif;
margin-right:0px;
width:auto ;
padding-right: 0px;
display:inline;
}


.Pie_Pagina
{
background-image: url(../Imagenes/Fondo_Rojo_Small.gif);
color :#FFFFFF;
font-size:12px ;
font-weight:lighter;
font-family:verdana,arial,helvetica,clean,sans-serif;
vertical-align:bottom;
margin-top: 1px;
padding: 0px 0px 0px 0px;
display:inline;
text-align:left;

}


Gracias, por la ayuda
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:32.