Title: PHP code for padding?
Last modified: August 19, 2016

---

# PHP code for padding?

 *  [worldsnapper](https://wordpress.org/support/users/worldsnapper/)
 * (@worldsnapper)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/php-code-for-padding/)
 * Hi,
 * I have inserted the following line of code into my Blog Page Template (blog-page​.
   php) to display a slideshow…
 * `<?php show_showtime ("id=5365|width=960|height=350"); ?>`
    _[Please post code
   snippets between backticks or use the code button.]_
 * However I want to add some padding so that there is more space between the slideshow
   and menu bar. Click [HERE](http://www.andrewnewey.com/blog) to see what I mean.
 * Does anyone know what I need to add to this line of code to create some top padding?
 * Thanks

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [K-Fella](https://wordpress.org/support/users/k-fella/)
 * (@k-fella)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/php-code-for-padding/#post-2033270)
 * Add padding or margins to #menu in your style.css file.
 *  [K-Fella](https://wordpress.org/support/users/k-fella/)
 * (@k-fella)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/php-code-for-padding/#post-2033274)
 *     ```
       #menu {
       margin-bottom: 10px;
       /* or padding-bottom: 10px; if margin doesn't work */
       }
       ```
   
 *  Thread Starter [worldsnapper](https://wordpress.org/support/users/worldsnapper/)
 * (@worldsnapper)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/php-code-for-padding/#post-2033294)
 * Cheers K-Fella, but I don’t want to add padding to the bottom of the menu as 
   this will make the space between the menu & slideshow on the others pages too
   much. It is only the padding between the menu & slideshow on the blog page I 
   want increasing
 *  [K-Fella](https://wordpress.org/support/users/k-fella/)
 * (@k-fella)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/php-code-for-padding/#post-2033471)
 * Use conditional tags in your template. For instance:
 * `<div id="menu" <?php if ( is_page('blog') ) { echo 'class="blogmenu"' } ?>`
 * Then add a new style for .blogmenu with the extra margin/padding.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘PHP code for padding?’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [slideshow](https://wordpress.org/support/topic-tag/slideshow/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [K-Fella](https://wordpress.org/support/users/k-fella/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/php-code-for-padding/#post-2033471)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
