Alinear vinculados imagen del botón JavaScript

  • VeggiesanTaters
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 31, 2009
  • Mensajes: 7
  • Status: Offline

Nota Octubre 31st, 2009, 9:54 am

Hola me preguntaba si alguien sabe la mejor manera de añadir este botón de cierre de verde a esta mesa?
Traté align = "right" en html pero permanece cerca del fondo y lo necesito cerca de la cima y fondo css no funciona porque lo necesito para hacer clic.
Heres el código
HTML Código: [ Download ] [ Select ]
<div id="parent">
     
     <div id="child">
   
 
<table cellspacing="1" cellpadding="2" class="torrents" id="myTable" width="470">
<caption>Week ending October 25, 2009</caption>
<thead>
<tr>
<th class="c1"><strong>Ranking</strong></th>
<th class="c2"><strong>(<a href="#">last week</a>)</strong></th>
<th><center><strong>Movie</strong></center></th>
<th><center><img src="images/youtube.gif" border="0"></center> <a href="#" class="highlightit"> <img src="images/close.gif" align="right" value="Remove" onClick="removeElement('parent','child');"></th>
</tr>
</thead>
 
<tfoot>
<tr>
<td align="right" colspan="4"><a href=""></a></td>
</tr>
</tfoot>
<tbody>
  1. <div id="parent">
  2.      
  3.      <div id="child">
  4.    
  5.  
  6. <table cellspacing="1" cellpadding="2" class="torrents" id="myTable" width="470">
  7. <caption>Week ending October 25, 2009</caption>
  8. <thead>
  9. <tr>
  10. <th class="c1"><strong>Ranking</strong></th>
  11. <th class="c2"><strong>(<a href="#">last week</a>)</strong></th>
  12. <th><center><strong>Movie</strong></center></th>
  13. <th><center><img src="images/youtube.gif" border="0"></center> <a href="#" class="highlightit"> <img src="images/close.gif" align="right" value="Remove" onClick="removeElement('parent','child');"></th>
  14. </tr>
  15. </thead>
  16.  
  17. <tfoot>
  18. <tr>
  19. <td align="right" colspan="4"><a href=""></a></td>
  20. </tr>
  21. </tfoot>
  22. <tbody>


Ive estado tratando diferentes soluciones para la hora y ahora parece que no puede hacerlo bien.
* Visitas cabeza contra la pared * gif "alt =": grito: "title =" Llorando o muy triste ">

Edit: he añadido una captura de pantalla de dicho botón. :P
Attachments:
table.png
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Octubre 31st, 2009, 9:54 am

  • joebert
  • Weathered
  • Genius
  • Avatar de Usuario
  • Registrado: Feb 10, 2004
  • Mensajes: 11884
  • Loc: Clearwater, FL
  • Status: Offline

Nota Octubre 31st, 2009, 11:18 am

Lo primero que intentaría sería la de sustituir este
HTML Código: [ Download ] [ Select ]
<th><center><img src="images/youtube.gif" border="0"></center> <a href="#" class="highlightit"> <img src="images/close.gif" align="right" value="Remove" onClick="removeElement('parent','child');"></th>


Con este
HTML Código: [ Download ] [ Select ]
<th style="text-align:center">
   <a href="#" class="highlightit" style="float:right;" onclick="removeElement('parent','child'); return false;">
      <img src="images/close.gif" alt="Remove">
   </a>
   <img src="images/youtube.gif" border="0">
</th>
  1. <th style="text-align:center">
  2.    <a href="#" class="highlightit" style="float:right;" onclick="removeElement('parent','child'); return false;">
  3.       <img src="images/close.gif" alt="Remove">
  4.    </a>
  5.    <img src="images/youtube.gif" border="0">
  6. </th>
Why yes, yes I am.
  • VeggiesanTaters
  • Newbie
  • Newbie
  • No Avatar
  • Registrado: Oct 31, 2009
  • Mensajes: 7
  • Status: Offline

Nota Octubre 31st, 2009, 11:29 am

joebert escribió:
Lo primero que intentaría sería la de sustituir este
HTML Código: [ Download ] [ Select ]
<th><center><img src="images/youtube.gif" border="0"></center> <a href="#" class="highlightit"> <img src="images/close.gif" align="right" value="Remove" onClick="removeElement('parent','child');"></th>


Con este
HTML Código: [ Download ] [ Select ]
<th style="text-align:center">
   <a href="#" class="highlightit" style="float:right;" onclick="removeElement('parent','child'); return false;">
      <img src="images/close.gif" alt="Remove">
   </a>
   <img src="images/youtube.gif" border="0">
</th>
  1. <th style="text-align:center">
  2.    <a href="#" class="highlightit" style="float:right;" onclick="removeElement('parent','child'); return false;">
  3.       <img src="images/close.gif" alt="Remove">
  4.    </a>
  5.    <img src="images/youtube.gif" border="0">
  6. </th>

Cool gracias. Eso hizo mucho mejor. :wink:

Publicar Información

  • Total de mensajes en este tema: 3 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 179 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© Unmelted Enterprises 1998-2009. Impulsado por phpBB © 2001-2009 phpBB Group.