Title: quick php question
Last modified: August 19, 2016

---

# quick php question

 *  Resolved [samueldiener](https://wordpress.org/support/users/samueldiener/)
 * (@samueldiener)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/quick-php-question-4/)
 * Hey all,
 * I want to make an inline style change to the margin on the line:
 * `<div id="post-<?php the_ID(); ?>" <?php if (function_exists("post_class")) post_class();
   else print 'class="post"'; ?>>`
 * What could I add to this line if I want to change the margin to margin: 0 0 0em;?
 * Thank you!
 * Sam

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/quick-php-question-4/#post-1187771)
 * `<div id="post-<?php the_ID(); ?>" style="margin:0;" <?php if (function_exists("
   post_class")) post_class(); else print 'class="post"'; ?>>`
 *  [Mark / t31os](https://wordpress.org/support/users/t31os_/)
 * (@t31os_)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/quick-php-question-4/#post-1187772)
 *     ```
       style="margin:0;"
       ```
   
 * or
 *     ```
       style="margin:2px 0 3px 0;"
       ```
   
 * Whatever you like..
 *     ```
       style="color:black;font-size:20px;line-height:20px"
       ```
   
 * etc…
 * Purely examples..
 *  Thread Starter [samueldiener](https://wordpress.org/support/users/samueldiener/)
 * (@samueldiener)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/quick-php-question-4/#post-1187808)
 * thanks!!!!!!

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

The topic ‘quick php question’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [samueldiener](https://wordpress.org/support/users/samueldiener/)
 * Last activity: [16 years, 9 months ago](https://wordpress.org/support/topic/quick-php-question-4/#post-1187808)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
