Foros del Web » Creando para Internet » HTML »

Ayuda en HTML y PHP

Estas en el tema de Ayuda en HTML y PHP en el foro de HTML en Foros del Web. Buenas tardes, soy nuevo en esto y la verdad nunca tuve un problema. Le paso a explicar, estoy armando una pagina con css y php, ...
  #1 (permalink)  
Antiguo 09/03/2010, 16:39
 
Fecha de Ingreso: marzo-2010
Mensajes: 17
Antigüedad: 14 años, 1 mes
Puntos: 1
Ayuda en HTML y PHP

Buenas tardes, soy nuevo en esto y la verdad nunca tuve un problema.

Le paso a explicar, estoy armando una pagina con css y php, esta tiene un sistema de noticias, cada vez que agrego una noticia las imagenes me las tira todas para la derecha y la verdad que no se que hacer.

El index llama al archivo news.php y queda asi

Código HTML:
 <div><p align="left" > <?php include ('headlines.php') ; ?> </p></div></div>
      <a href="#">
    
      </a>
 
      <!-- B.2 MAIN CONTENT -->
      <div class="main-content">
        
        <!-- Pagetitle -->
        <h1 class="pagetitle"> <p align="center" >Ultimas Noticias
        </p>
        </h1>

        <!-- Content unit - One column -->
        
    
          
      <hr class="clear-contentunit" />
      <!-- Content unit - One column -->
      <?php include ('noticias/news.php') ; ?> </div> 

este es el codigo del news.php


Código PHP:
<h1 id="ni$news[id]"> </h1>
$subject<br />
Escrito por<img border="0"  src="img/contact_blue.png" /> $username  <br />
Categoria$category.  $caticon 

<br />
$titletext
<br />
<
br />
$maintext |  $comments <img border="0" src="img/comentarios.png" /> | $sendtofriend $time <img src="img/calendar_day.png" /> 
<
br /> 
y esto tiene el css

Código HTML:
.main {clear:both; width:954px; padding-bottom:30px; border-left:solid 3px rgb(175,175,175); border-right:solid 3px rgb(175,175,175); background:transparent url(../img/bg_main.gif) top left repeat-y;}
.main-navigation {display:inline /*Fix IE floating margin bug*/; float:left; width:200px; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/; background:rgb(245,245,245);}
.main-content {display:inline; /*Fix IE floating margin bug*/; float:left; width:500px; margin:0 0 0 30px; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}
.main-subcontent {display:inline /*Fix IE floating margin bug*/; float:right; width:185px; margin:0 15px 0 0; overflow:visible !important /*Firefox*/; overflow:hidden /*IE6*/;}

Y esto me queda asi



Si alguien me puede ayudar por favor.

Gracias !
  #2 (permalink)  
Antiguo 09/03/2010, 17:05
Avatar de blogger  
Fecha de Ingreso: diciembre-2005
Ubicación: frente al monitor
Mensajes: 398
Antigüedad: 18 años, 4 meses
Puntos: 12
Respuesta: Ayuda en HTML y PHP

¿Será por que estas alineando todo a la izquierda con float:left?
__________________
http://exegesis-biblica.com/
  #3 (permalink)  
Antiguo 09/03/2010, 20:23
 
Fecha de Ingreso: marzo-2010
Mensajes: 17
Antigüedad: 14 años, 1 mes
Puntos: 1
Respuesta: Ayuda en HTML y PHP

Se lo cambie, pero de todas formas se me sigue viendo asi, se me centra el texto pero las imagenes siguen alineandose :/

Alguna otra solucion ?
  #4 (permalink)  
Antiguo 10/03/2010, 18:57
 
Fecha de Ingreso: marzo-2010
Mensajes: 17
Antigüedad: 14 años, 1 mes
Puntos: 1
Respuesta: Ayuda en HTML y PHP

UP, alguien me ayuda ?

Etiquetas: php
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

SíEste tema le ha gustado a 1 personas




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