Jump to content

Recommended Posts

Posted

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á!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.