Bonjour
Je voudrais pouvoir mettre trois tableau sur la meme ligne avec de l'epsace entre les tableau, or la j'ai un retour à la ligne apres chaque tableau.
J'ai fait avec les tableau car il me faut les bordure arrondi.
Autre probleme j'ai le bon lien bon titre mais pas le bon resumé.
Voici mon code.
Capture en pj.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 <?php $args = array( 'numberposts' => 3, 'orderby' => 'rand' , "category" =>9); $rand_posts = get_posts( $args ); foreach( $rand_posts as $post ) : ?> <table width="300" style="border:2px solid grey;border-radius: 10px;" bordercolor="#00CCFF" cellspacing="0" bgcolor="ffffff" cellpadding="10"><tr><td><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a><br/><br/><?php the_excerpt(); ?></td></tr></table> <?php endforeach; ?>
Merci
Partager