soueu Posted May 19, 2013 at 06:11 PM Report #507990 Posted May 19, 2013 at 06:11 PM Boas, Não tenho a certeza se este será o local apropriado para o postar, mas aqui vai. Estou desenvolvendo um sistema de notícias em PHP para um site em que estou trabalhando, onde vou buscar os dados a uma tabela MySQL e mostro-os para o utilizador em HTML, o problema é que o texto mostrado não muda de linha e com isto acaba por ultrapassar os limites da página, o problema penso que estará no DIV, mas não tenho a certeza de como o resolver... PHP: <section id="content"> <div class="inside"> <?php $query = mysql_query('SELECT * FROM noticias ORDER BY id DESC'); while($output = mysql_fetch_assoc($query)) { ?> <ul class="news"> <li><strong><?php echo date('d-m-Y H:i', $output['data']).'<br / >'; ?></strong> <h4><a href="#"><?php echo $output['assunto'].'<br />'; ?></a></h4> <?php echo $output['noticia'].'<br / >'; echo '<b>Publicado Por:</b> '.$output['postadoPor'].'<br / ><br / >'; ?></li> </ul> <?php } ?> </div> </section> CSS: /* Global Structure ============================================================= */ .container { margin:0 auto; width:940px; overflow:hidden; font-size:.875em; padding-bottom:176px; } /* Header */ header { background:url(../images/header-bg.jpg) no-repeat center top; min-width:940px; } header .container { height:194px; position:relative; padding:0; } /* Content */ section#content { float:left; width:691px; } /*===== content =====*/ #content .inside { padding:0px; } Alguma ajuda ? :S Agradeço desde já!
yoda Posted May 19, 2013 at 06:29 PM Report #507991 Posted May 19, 2013 at 06:29 PM word-wrap: break-word; 1 Report before you post, what have you tried? - http://filipematias.info sense, purpose, direction
soueu Posted May 19, 2013 at 06:55 PM Author Report #507993 Posted May 19, 2013 at 06:55 PM @yoda Muito obrigado, problema resolvido! 🙂
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now