Comunidad PHPeros

Lenguajes => (X)HTML => Mensaje iniciado por: Flooder en 27 de Noviembre de 2009, 17:23:26 pm

Título: [Ayuda] Con este código html x.x
Publicado por: Flooder en 27 de Noviembre de 2009, 17:23:26 pm
Bueh, yo tengo un Cutenews, y dónde pone el titulo y la categoría de las notis puse un "botom":

(http://www.newhfk.zxq.net/news/news_img/box_not.png)

Pero tengo un error, cuando lo pongo se "Desconfigura" el diseño donde pone las noticias.. No sé si me explico, queda de esta manera:
(http://img6.imageshack.us/img6/4735/asdou.png)

¿Cómo lo arreglo?, el código que uso es:

Código: [Seleccionar]
<html><head>
<center>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></head><body>
<p></p><div align="">
  <table width="485" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td> </td>
    </tr>
    <tr>
      <td valign="bottom"><img src="http://www.newhfk.zxq.net/news/news_img/news_arriba.PNG" width="485" border="0" height="15"></td>
    </tr>
          <th background="http://www.newhfk.zxq.net/news/news_img/box_not.png" table width="482" height="46"><span style="color: #FFF; font-weight: bold; font-family: Verdana;"> {title}</span></span>      <span style="font-family: Arial; font-weight: color: #FFF;">Categoría:</span> {category}<tr>
       <td background="http://www.newhfk.zxq.net/news/news_img/news_medio.png"><table width="485" border="0" cellpadding="" cellspacing="">

         
<div><div>     {short-story}</div></div>


      <img
src="http://www.newhfk.zxq.net/news/news_img/report.PNG" > <span style="color: rgb(51, 204, 255); font-weight: bold; font-family: Arial;">{author}</span>           
{date}           
           
<img
src="http://www.newhfk.zxq.net/news/news_img/coment.PNG" > [com-link]Comentar[/com-link]
</tr>
      </tbody></table></td>
    </tr>
    <tr>
      <td><img src="http://www.newhfk.zxq.net/news/news_img/news_abajo.PNG" width="485" border="0" height="12"></td></center>
Título: Re:[Ayuda] Con este código html x.x
Publicado por: Siquillote en 29 de Noviembre de 2009, 12:17:21 pm
Esque lo que estás haciendo es poner la imagen como fondo de tabla y claro si la tabla es más grande que la IMG pues lo que va a hacer es rellenar toda la tabla con la misma IMG. eso es lo que te está pasando , que se está repitiendo la IMG

Lo que puedes hacer es disminuir el width de la tabla o celda y debería funcionar :D
Título: Re:[Ayuda] Con este código html x.x
Publicado por: NDSi en 29 de Noviembre de 2009, 22:18:19 pm
Esque lo que estás haciendo es poner la imagen como fondo de tabla y claro si la tabla es más grande que la IMG pues lo que va a hacer es rellenar toda la tabla con la misma IMG. eso es lo que te está pasando , que se está repitiendo la IMG

Lo que puedes hacer es disminuir el width de la tabla o celda y debería funcionar :D

¿Tambien se podria configurar el fondo como no-repeat?