Title: why inline element doesn&#039;t work?
Last modified: August 20, 2016

---

# why inline element doesn't work?

 *  [blurfun](https://wordpress.org/support/users/blurfun/)
 * (@blurfun)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/why-inline-element-doesnt-work/)
 * How can i put **Title** and **Content** in one line? (see the code)
    <span> is
   already inline element, but just doesn’t work.
 * Can someone give me some idea? Thank you.
 *     ```
       <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a>
       <span class="entry"> <?php the_content(); ?> </span>
       </h2>
       ```
   

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

 *  [Thomas Eschemann](https://wordpress.org/support/users/teschemann/)
 * (@teschemann)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/why-inline-element-doesnt-work/#post-2427817)
 * The code you posted does print Title and Content in one line, however you probably
   shouldn’t be printing the_content() in a h2 tag.
    I would rather use something
   like that :
 *     ```
       <h2 class="inline"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
       <span class="entry"><?php the_content(); ?></span>
       ```
   
 *     ```
       .inline{
           display:inline;
       }
       ```
   
 *  Thread Starter [blurfun](https://wordpress.org/support/users/blurfun/)
 * (@blurfun)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/why-inline-element-doesnt-work/#post-2427996)
 * Thank you so much.
    But still does not work.
 * I think maybe something about PHP,
    it works on pure CSS

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

The topic ‘why inline element doesn't work?’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [blurfun](https://wordpress.org/support/users/blurfun/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/why-inline-element-doesnt-work/#post-2427996)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
