2 Tables Side by Side?
-
I have two custom fields within two tables. They line up vertically right now. How would I make it so they line up side by side? What would I need to ad to the code? Or is this a CSS thing?
<?php $url = get_post_meta($post->ID, 'youtube', false); foreach($url as $url) if($url != '') : ?> <table border="1"> <tr> <td><a href="<?php echo $url; ?>">Youtube</a></p></td> </tr> </table> <?php endif; ?> <?php $url = get_post_meta($post->ID, 'dailymotion', false); foreach($url as $url) if($url != '') : ?> <table border="1"> <tr> <td><a href="<?php echo $url; ?>">Daily Motion</a></p></td> </tr> </table> <?php endif; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘2 Tables Side by Side?’ is closed to new replies.