Foros del Web » Creando para Internet » CSS »

Problema con Chrome

Estas en el tema de Problema con Chrome en el foro de CSS en Foros del Web. Hola a todos! Estoy diseñando una web actualmente, y tengo problemas con el visionado de la web con google chrome únicamente, ya que en el ...
  #1 (permalink)  
Antiguo 09/06/2011, 05:41
 
Fecha de Ingreso: noviembre-2007
Ubicación: San Juan de Alicante
Mensajes: 78
Antigüedad: 16 años, 5 meses
Puntos: 7
Pregunta Problema con Chrome

Hola a todos!

Estoy diseñando una web actualmente, y tengo problemas con el visionado de la web con google chrome únicamente, ya que en el resto de navegadores funciona perfectamente.

La web está diseñada en base a una plantilla de WP y la parte que no funciona es la sección de destacado que tiene este código:
Código:
<?php 
	
	$featuredcat = get_option('woo_featured_category'); // ID of the Featured Category
	
	$the_query = new WP_Query('category_name=' . $featuredcat . '&showposts=5&orderby=post_date&order=desc');
	
	$counter = 0;
			
	while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
?>

	<?php $counter++; ?>
	
	<div class="featured" id="post-<?php the_ID(); ?>"> 
		
		<?php woo_image('height=200&width=350&class=featured-img'); ?>
            
        <?php if ($counter == 1) { ?>
        <div id="ribbon"><img src="<?php bloginfo('template_directory'); ?>/styles/<?php echo "$style_path"; ?>/ribbon.png" alt="destacado"  /></div>
        <?php } ?> <!-- SHOW "FEATURED" RIBBON FOR FIRST POST ONLY -->
		
        <div class="featured-content">		
            <h2><?php the_category(', ') ?></h2>
            <h3><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
            <p><?php echo strip_tags(get_the_excerpt(), '<a><strong>'); ?></p>
            <p style="margin-bottom:2px !important;"><span class="continue"><a title="<?php _e('Permanent Link to',woothemes); ?> <?php the_title(); ?>" href="<?php the_permalink() ?>"><?php _e('Continue Reading',woothemes); ?></a></span></p>
        </div>
				
	</div><!--/featured-->

<?php endwhile; ?>

<div id="featured-th">

	<ul class="idTabs">

		<?php 
			$the_query = new WP_Query('category_name=' . $featuredcat . '&showposts=5&orderby=post_date&order=desc');
			
			$counter = 0;
					
			while ($the_query->have_posts()) : $the_query->the_post(); $do_not_duplicate = $post->ID;
		?>
		
		<?php $counter++; ?>

		<?php if ( get_post_meta($post->ID, 'image', true) ) { ?> <!-- DISPLAYS THE IMAGE URL SPECIFIED IN THE CUSTOM FIELD -->
			
			<li <?php if ($counter == 5) { ?>class="last"<?php } ?>><a href="#post-<?php the_ID(); ?>">
            		<?php woo_image('height=57&width=100&link=img'); ?>
            </a></li>			
			
		<?php } else { ?> <!-- DISPLAY THE DEFAULT IMAGE, IF CUSTOM FIELD HAS NOT BEEN COMPLETED -->
			
			<li <?php if ($counter == 5) { ?>class="last"<?php } ?>><a href="#post-<?php the_ID(); ?>"><img src="<?php bloginfo('template_directory'); ?>/images/no-img-thumb.jpg" alt=""/></a></li>
			
		<?php } ?> 		
		
		<?php endwhile; ?>
	
	</ul>

</div><!--/featured-th-->
El css de la sección de destacados es esta:
Código:
/*========= FEATURED POSTS (FRONT-PAGE) =========*/

.featured{
	background: #dddddd;
	height: 200px;
	margin: 0 0 10px;
	overflow: hidden;
	position:relative;
}
.featured h2{
	font-size: 11px;
	padding: 10px 0;
}
.featured h3{
	font-size: 14px;
	padding: 0 0 10px 0;
}
.featured h3 a {
	color:#000;
}
.featured h3 a:hover {
	color:#FF7800;
}
.featured p {
	margin-bottom:10px;
}
.featured-img{
	margin: 0 10px 0 0;
	width:350px;
	height:200px;
	float:left;
	display:inline;
}
#ribbon{
	width:138px;
	height:138px;
	position:absolute;
	right:200px;
	top:0;
}
#featured-th{
	height: 57px;
	margin: 0 0 30px;
}
#featured-th img{
	margin: 0;
	border:none;
}
#featured-th .idTabs {
	list-style:none;
	}
#featured-th .idTabs li {
	float:left;
	display:inline;
	margin-right:12px;
	}
#featured-th .idTabs li.last {
	margin-right:0px !important;
	}
	
.featured-content { margin-left:367px; 	padding-right:10px;
}
También presenta un error en las pestañas de: "popular", "comentarios" y "destacados":
Código:
<div class="sideTabs">
			
		<ul class="idTabs">
			<li><a href="#pop"><?php _e('POPULAR',woothemes); ?></a></li>
			<li><a href="#comm"><?php _e('COMENTARIOS',woothemes); ?></a></li>
			<li><a href="#feat"><?php _e('DESTACADOS',woothemes); ?></a></li>
		</ul><!--/idTabs-->
	
	</div><!--/sideTabs-->
El CSS de esta parte es:
Código:
/*- Sidebar Tabs - Popular, Comments, Featured, Tag Cloud -*/
.sideTabs {
	border-bottom:1px solid #C0C0C0;
	height:31px;
	width:350px;
	float:left;
	display:block;
	}
.sideTabs .idTabs{
	font-size: 12px;
	height: 30px;
	letter-spacing: -1px;
}
.sideTabs .idTabs li{
	float: left;
	font-size: 13px;
	line-height: 30px;
}
.sideTabs .idTabs li a{
	background: #eeeeee;
	border: 1px solid #eeeeee;
	border-bottom: 0;
	color: #c0c0c0;
	display: block;
	margin: 0 2px 0 0;
	padding: 0 10px;
	font-weight:bold;
}
.sideTabs .idTabs li a:hover,
.sideTabs .idTabs .selected{
	background: #dddddd;
	border: 1px solid #c0c0c0;
	border-bottom:1px solid #ddd;
	color: #373737;
	text-decoration: none;
}
.navbox{
	background: #dddddd;
	border: 1px solid #c0c0c0;
	border-top: 0;
	margin: -2px 0 25px;
	padding: 10px 10px 0;
	position: relative;
}
.list1,list3,list4{
	padding-bottom:12px;
	}
.list1 li,.list3 li,.list4 li{
	background: url(images/ico-star.gif) no-repeat left center;
	padding: 6px 0 6px 25px;
	border-bottom:1px dashed #C0C0C0;
}
.list1 li a,.list3 li a,.list4 li a{
	color: #000000;
}
.list3 li {
	background: url(images/ico-mostcomm.gif) no-repeat left center !important;
	}
.list4 li {
	background: url(images/ico-feat.gif) no-repeat left center !important;
	}
Alguien tiene alguna sugerencia? Me estoy volviendo loco probando cosas y no encuentro la solución...

Muchas gracias

Etiquetas: chrome, compatibilidad
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




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