Title: Code Tag
Last modified: August 18, 2016

---

# Code Tag

 *  Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/)
 * I have a simple question to ask. I’ve defined a CSS font style for the `<code`
   tag. The style works if the  tag doesn't have any blank lines it it, otherwise
   it works upto the blank line and then the parent font style is used for the rest
   of the code block. Any clues to why this happens.

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

 *  [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * (@markjaquith)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-73985)
 * I’m guessing that auto-paragraphs is messing you up here…
 *  Thread Starter Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-73987)
 * In fact, this was asked sometime back here: [http://wordpress.org/support/6/8710](http://wordpress.org/support/6/8710)
   
   But no response from what I can guess.
 *  [Mark Jaquith](https://wordpress.org/support/users/markjaquith/)
 * (@markjaquith)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-73992)
 * The code tag is an inline element. Try using the pre tag for blocks of code.
 *  Thread Starter Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-73993)
 * Tried  with display: block ... and `<pre>` as well but same problem 🙁
 *  [noahpb](https://wordpress.org/support/users/noahpb/)
 * (@noahpb)
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-74010)
 * I had to define a “pre p” font-family to get mine to look right.
 *  Thread Starter Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-74109)
 * Thanks for the tip, noahpb! Its works well. I kept the code tag and added a “
   code p” style to make it work.
 *  Thread Starter Anonymous
 * [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-74110)
 * Arghh … aparently it doesn’t look the same on Moziall/Firefox now. The problem
   is that the WP auto-paragraph behaviour (of adding  for each new line) clashes
   with the code definition.

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

The topic ‘Code Tag’ is closed to new replies.

 * 7 replies
 * 3 participants
 * Last reply from: Anonymous
 * Last activity: [21 years, 10 months ago](https://wordpress.org/support/topic/code-tag/#post-74110)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
