Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

webdesign

css com problemas no mozila

Recommended Posts

alguem me pode dar uma ajuda no css,tenho imagens fora do sitio,,###criarwebsite.site11.com/####...

 

Validation Output: 9 Errors

  1. error.pngLine 414, Column 4: document type does not allow element "ol" here; assuming missing "li" start-tag <ol>
  2. error.pngLine 467, Column 5: end tag for "li" omitted, but OMITTAG NO was specified </ul>
     
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
  3. info.pngLine 414, Column 1: start tag was here <ol>
  4. error.pngLine 620, Column 18: document type does not allow element "div" here; assuming missing "li" start-tag <div class="cont">
  5. error.pngLine 622, Column 82: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag …picos=nav/single&topico=65673" rel="nofollow"><p>outlook italia</p></a></p>
     
    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
     
    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
  6. error.pngLine 670, Column 5: end tag for "li" omitted, but OMITTAG NO was specified </ul>
     
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
  7. info.pngLine 620, Column 1: start tag was here <div class="cont">
  8. error.pngLine 752, Column 7: end tag for "div" omitted, but OMITTAG NO was specified </body>
     
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
  9. info.pngLine 70, Column 2: start tag was here <div id="contentbody">
  10. error.pngLine 752, Column 7: end tag for "div" omitted, but OMITTAG NO was specified </body>
     
    You may have neglected to close an element, or perhaps you meant to "self-close" an element, that is, ending it with "/>" instead of ">".
  11. info.pngLine 27, Column 2: start tag was here <div id="container">
  12. error.pngLine 756, Column 78: document type does not allow element "script" here …type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
     
    The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
     
    One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
  13. error.pngLine 757, Column 10: document type does not allow element "noscript" here...

 

 

 

Como REsolvo este erros no vlidator

Compartilhar este post


Link para o post
Compartilhar em outros sites

É só ler e interpretar:

Na linha 414 você tem uma tag LI que não está dentro de uma tag UL nem de uma OL

Na linha 467 você não fechou uma tag UL

Na linha 620 você provavelmente colocou uma tag DIV como filha de uma tag UL, o que é proibido. UL pode ter apenas elementos LI como filhos.

Na linha 622 você inseriu um parágrafo <p> dentro de uma âncora <a>, o que é proibido.

 

E por aí vai...

 

O problema não é o CSS nem o navegador, é a marcação HTML que está errada.

Compartilhar este post


Link para o post
Compartilhar em outros sites

<ul>
<?php
//SELECIONA A CATEGORIA E SETA O LIMITE
if($recuperar == 'destaque'){
  $limite = '6';
  $quando = 'Novidades';

}else if($recuperar == 'lista'){
$limite = '3,12';
$quando = 'Novidades';
}else if($recuperar == 'Filmes'){
$limite = '4';
$quando = 'Filmes';
}else if($recuperar == 'Noticias'){
$limite = '16';
$quando = 'Noticias';
}
else if($recuperar == 'Filmes Em Cartaz'){
$limite = '10';
$quando = 'Filmes Em Cartaz';
}
else if($recuperar == 'Ineditos'){
$limite = '16';
$quando = 'Ineditos';
}
else if($recuperar == 'ultimas noticias'){
$limite = '4';
$quando = 'ultimas noticias';
}
else if($recuperar == 'ultimas noticias'){
$limite = '16';
$quando = 'ultimas lista';
}
else if($recuperar == 'destaques'){
$limite = '4';
$quando = 'destaques';
}


//RECUPERA AS NOTÍCCIAS
$noticias = mysql_query("SELECT
					id,
					thumb,
					titulo,
					texto,
					categoria,
					`data`,
					autor,
					valor_real,
					valor_pagseguro,
					realizador,
					actores
                   	FROM up_posts
					WHERE categoria = '$quando'
					ORDER BY data DESC
					LIMIT $limite")
       	or die(mysql_error());
if(@mysql_num_rows($noticias) <= '0'){
  echo "$info_not";
}else{

$numero = '0';

	while($res_noticias=mysql_fetch_array($noticias)){

   	$id_do_post = $res_noticias[0];
	$thumb = $res_noticias[1];
	$titulo = $res_noticias[2];
	$texto = $res_noticias[3];
	$categoria = $res_noticias[4];
	$data = $res_noticias[5];
	$autor = $res_noticias[6];
	$valor_real = $res_noticias[7];
	$valor_pagseguro = $res_noticias[8];
	$realizador = $res_noticias[9];
	$actores = $res_noticias[10];
	$numero++;




?>

<!-- LISTA AS NOTÍCIAS -->
<?php
if($recuperar == 'destaque'){
?>
<li class="n1" style="opacity: 1; z-index: 1; display: block;">
<a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><img src="uploads/<?php echo $categoria; ?>/<?php echo $thumb; ?>" alt="<?php echo $titulo; ?>" width="200" height="300" /></a>
</li>

<?php
}else if($recuperar == 'lista'){
?>

<li>
			<p class="box-cartaz-filme">
				<a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><img src="uploads/<?php echo $categoria; ?>/<?php echo $thumb; ?>" alt="<?php echo $titulo; ?>" /></a></p>
<p class="box-cartaz-titulo"><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a></p>
<p><span>Dir:</span><?php echo $realizador; ?></p>
<p><span>com:</span><?php echo $actores; ?></p>

</li>


<?php
}else if($recuperar == 'Filmes'){
?>
 <li>
		<span class="blog-item-data"><?php echo date('d/m/Y', strtotime($data)); ?> - Por </span>
<h3><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a></h3>
<p><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><img src="uploads/<?php echo $categoria; ?>/<?php echo $thumb; ?>" alt="<?php echo $titulo; ?>" width="200" height="300" /></a></p>
	</li>


<?php
}else if($recuperar == 'Noticias'){
?>
 				<li>
		<p class="titulo"><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a></p>
		<p class="imagem">
		<a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>" rel="nofollow" title="<?php echo $titulo; ?>"><img src="uploads/<?php echo $categoria; ?>/<?php echo $thumb; ?>" alt="<?php echo $titulo; ?>" width="80" height="80" /></a></p>
	</li>
<?php  

}else if($recuperar == 'Ineditos'){
?>
 <li>
<p class="box-cartaz-filme"><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><img src="uploads/<?php echo $categoria; ?>/<?php echo $thumb; ?>" alt="<?php echo $titulo; ?>" width="78" height="100" /></a><span></span></p>
<p class="box-cartaz-titulo"><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a></p>
<p><span>Dir:</span><?php echo $realizador; ?></p>
<p><span>com:</span><?php echo $actores; ?></p>
</li>

<?php  

}else if($recuperar == 'Filmes Em Cartaz'){
?>
<ol>

<li class="par">
<span class="num"><?php echo $numero; ?></span> <a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a><span class="voto" title="Nota dos Usuários">7</span> <span class="coment" title="Comentários"><span>17</span></span>
</li>
</ol>

  <?php
}else if($recuperar == 'ultimas noticias'){
?>

<div class="cont">
				<h3><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a></h3>
				<p><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>" rel="nofollow"><?php echo $texto; ?></a></p>
			</div>
			<div class="data-img">
				<span class="data"><?php echo date('d/m/y', strtotime($data)); ?></span>
				<span class="img"><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>" rel="nofollow"><img src="uploads/<?php echo $categoria; ?>/<?php echo $thumb; ?>" alt="<?php echo $titulo; ?>" width="46" height="46" title="<?php echo $titulo; ?>"/></a></span> 

</div>

  <?php
}else if($recuperar == 'ultimas lista'){
?>

<li>
<span class="data"><?php echo date('d/m/y', strtotime($data)); ?></span>
<span class="titulo"><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a></span>
</li>			


 <?php
}else if($recuperar == 'destaques'){
?><li>
<div class="dest-item">
	<div class="dest-item-cont">
		<h2>Destaques</h2>
		<h3><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>"><?php echo $titulo; ?></a></h3>
		<p class="dest-trecho"><?php echo $titulo; ?></p>
		<p class="dest-link-mais"><a href="index.php?topicos=nav/single&topico=<?php echo $id_do_post; ?>" class="lermais" rel="nofollow">Ler mais</a></p>
	</div>
<div class="dest-item-img"><img src="uploads/<?php echo $categoria; ?>/<?php echo $thumb; ?>" alt="<?php echo $titulo; ?>" width="402" height="290" title="<?php echo $titulo; ?>"/></div>
 </div>

	</li>
<?php
}
?>
<?php
}
}
?>

</ul>
está é home.php -->
---->



[code] <div id="intervencao"></div>
<div id="contentcenter">     <div id="destaques">
<?php
$recuperar = 'destaques';		     
include"scripts/noticias.php";
?>
<div id="dest-menu"><span></span></div>
     </div><!-- fim Destaques -->
<div id="box-estreias" style="left: 0px; top: 0px">
  <?php
    		$recuperar = 'destaque';		     
	     include"scripts/noticias.php";
	     ?>

<span class="nav"></span>
</div>
<div id="box-emcartaz" class="box-cartaz">
<h2><a href="#">Filmes em Cartaz</a></h2>
<div class="cartaz-container">
	<?php
           	$recuperar = 'lista';		     
			include"scripts/noticias.php";
?>
</div>
<div class="box-cartaz-fim">
	<p><a href="/filmes/cartaz/" rel="nofollow">Há <strong>141 filmes</strong> em cartaz</a></p>
	<p class="box-nav"><span><span class="btn prev">«</span> <span class="btn next">»</span></span></p>
	<p class="link-extra"><a href="/filmes/estreia/">Últimas estréias nos cinemas</a></p>
</div>
</div><div id="box-ineditos" class="box-cartaz">
<!-- teste -->
<h2><a href="/filmes/ineditos/">Filmes Inéditos</a></h2>
<div class="cartaz-container">
<?php
           	$recuperar = 'Ineditos';		     
			include"scripts/noticias.php";
?>
</div>
<div class="box-cartaz-fim">
	<p><a href="/filmes/ineditos/" rel="nofollow">Há <strong>267 filmes</strong> inéditos</a></p>
	<p class="box-nav"><span><span class="btn prev">«</span> <span class="btn next">»</span></span></p>
</div>
</div>
<div id="box-trailers">
<h2><a href="#">Trailers</a></h2>
<div id="trailer-container">
	<ul>
					<li>
	  	<a href="/filmes/procura-se-uma-noiva/trailers-e-imagens/#video-3255" rel="nofollow" title="Trailer - Arthur "><span class="trailer-duracao"></span><img src="images/trailers/arthur.jpg?size=154x90" alt="Vídeo - Arthur " width="154" height="90"/></a><p class="trailer-titulo"><a href="/filmes/procura-se-uma-noiva/#trailers">Arthur</a></p>
		</li>
					<li>
	  	<a href="/filmes/procura-se-uma-noiva/trailers-e-imagens/#video-3255" rel="nofollow" title="Trailer - Arthur "><span class="trailer-duracao"></span><img src="images/trailers/arthur.jpg?size=154x90" alt="Vídeo - Arthur " width="154" height="90"/></a><p class="trailer-titulo"><a href="/filmes/procura-se-uma-noiva/#trailers">Arthur</a></p>
		</li>
					<li>
	  	<a href="/filmes/jumper/trailers-e-imagens/#video-3254" rel="nofollow" title="Trailer - Sem Identidade"><span class="trailer-duracao"></span><img src="images/trailers/sem_identidade.jpg?size=154x90" alt="Vídeo - Sem Identidade" width="154" height="90"/></a><p class="trailer-titulo"><a href="/filmes/jumper/#trailers">Sem Identidade</a></p>
		</li>
					<li>
  	<a href="/filmes/acertando-as-contas-com-papai/trailers-e-imagens/#video-3253" rel="nofollow" title="Trailer - A Ressaca Parte II"><span class="trailer-duracao"></span><img src="images/trailers/a_ressaca_2.jpg?size=154x90" alt="Vídeo - A Ressaca - Parte II" width="154" height="90"/></a><p class="trailer-titulo"><a href="/filmes/acertando-as-contas-com-papai/#trailers">A Ressaca - Parte II</a></p>
		</li>
				</ul>
</div><!-- fim Trailer-Container-->
</div><!-- fim Trailers -->

<div id="box-top10">
<h2><a href="#">Top 10</a></h2>
<div id="box-top10-container">
	<ul id="box-top10-menu">
		<li><a class="ativo" href="#top10 - Portugal" rel="nofollow"><span>Top 10 Portugal</span></a></li>
		<li><a class="ativo" href="#top10 - Portugal" rel="nofollow"><span>Top 10 Portugal</span></a></li>
	</ul>
	<div id="top10-brasil">
		<h3>Top 10 Portugal</h3>

       	<?php
           	$recuperar = 'Filmes Em Cartaz';		     
			include"scripts/noticias.php";
?>

	</div>

</div>

</div><!-- fim Top 10 -->

<div id="box-promocoes">
<h2><a href="#">Multimédia</a></h2>
    <?php
           	$recuperar = 'Noticias';		     
			include"scripts/noticias.php";
			?>
</div><!--#box-promocoes-->

<div id="box-blog">
<h2><a href="#">Noticias</a></h2>
    <?php
      		$recuperar = 'Filmes';		     
	       include"scripts/noticias.php";
			?>
</div>



<div id="banner-extra">
<div style="text-align: center;">
		<!-- begin ad tag (tile=4) -->
pub
	<!-- End ad tag -->
</div>
</div><!--#banner-extra-->		</div><!-- fim Contentcenter -->					<div id="contentright">
<div id="square">publicidade
	<div>
		<!-- begin ad tag (tile=2) -->
		<script type="text/javascript"><!--
google_ad_client = "pub-3505393501368142";
/* 300x250, criado 16-06-2011 */
google_ad_slot = "2545712438";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>

  	<!-- End ad tag -->
	</div>			
</div><!--#square-->
<div id="box-login">
	<form name="login" action="<?php echo $loginFormAction; ?>" method="post">
<table border="0">
 	<tr>
   	<td colspan="3"><h3>Area Administrativa</h3></td>
 	</tr>
 	<tr>
   	<td><h5>User:</h5></td>
   	<td><input type="text" name="login" />
   	</td>
   	<td rowspan="2"><input type="submit" value="Logar" name="Logar" class="btn_login" /></td>
 	</tr>
 	<tr>
   	<td><h5>Senha:</h5></td>
   	<td><input type="password" name="senha" /></td>
 	</tr>

</table>
 	</form>
</div>
<div id="box-redes-sociais">
	<div class="twitter">
		<a href="http://www.twitter.com/adorocinema" rel="nofollow">Siga-nos no Twitter</a>				</div>
	<ul>
		<li class="delicious"><a href="http://del.icio.us/post?url=http://www.adorocinema.com/" rel="nofollow">delicious</a></li>
		<li class="feedback"><a href="http://www.adorocinema.com/page/bug/" rel="nofollow">feedback</a></li>					
	</ul>
</div>

<div id="box-noticias">
	<h2><a href="/cinenews/">Últimas Notícias</a></h2>
						<div class="noticia-item primeiro">

		     <?php
      		$recuperar = 'ultimas noticias';		     
	       include"scripts/noticias.php";
			?>
	     <div class="noticia-item">

			<div class="noticias-anteriores">
		<p><a href="/cinenews/">+ Notícias</a></p>
    <?php
      		$recuperar = 'ultimas lista';		     
	       include"scripts/noticias.php";
			?>

				</div>
<div id="square2">publicidade<div>
		<!-- begin ad tag (tile=3) -->
		<script type="text/javascript"><!--
google_ad_client = "pub-3505393501368142";
/* 300x250, criado 16-06-2011 */
google_ad_slot = "2545712438";
google_ad_width = 300;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
		<!-- End ad tag -->
	</div>
</div><!--#square-->
<!-- fim Comentarios -->
</div>		</div>

 

[/code]Esta é linha que me dá erro 414 sera por ter

<li class="par"> 

ele nao me assume como se fosse uma

<li>

Cara pode me dar uma ajuda na estrutura html,o site funcionava bem em html só que agora coloquei para funcionar me php e pronto aconteceu istu!?

Compartilhar este post


Link para o post
Compartilhar em outros sites

Você tem que analizar a estrutura do HTML gerado, não da página contendo o PHP. Abra sua página, exiba o código fonte, copie e cole no seu editor. Aí sim você vai conseguir identificar os erros...

Compartilhar este post


Link para o post
Compartilhar em outros sites

Compartilhar este post


Link para o post
Compartilhar em outros sites

eu to com os mesmos problemas.. to lendo o doc aqui pra aprender mais.. o li esta dentro da ul, porém tem uma ruma de código php em entrementes, ja que ele chama o conteudo dinamicamente..

Compartilhar este post


Link para o post
Compartilhar em outros sites

no firefox, aperta ctrl + u e copia tudo e valida, as linhas que ele der erro você valida, use uma ide com que identifique a abertura e fechamento de tags, assim fica mais facil localizar, espero ter ajudado :thumbsup:

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.