• Hi all, I am pretty much a newbie at this, but have a question. I want to create a text box within a post that I can display lines of code (sql, ksh, perl, etc) in a courier font. I have seen this done on several WP blogs but can’t figure out how to do it.

    Thanks!

    Jay

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would just create a div within your post, like this:

    main text of the post goes here
    <div class="inpostbox">stuff in the box goes here</div>
    rest of the post goes here

    and then style it in your themes css file, like this:

    .inpostbox {border: 1px solid #000000; font: courier;}

    You only need to create the css once, and then you can recreate the same style of box in any post using the div class.

    For displaying code (in a nice textbox) in my post I am using WP-Syntax.

    Thread Starter madzdad

    (@madzdad)

    Both work great, thanks to both of you!

    Jay

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to create a text box within a post’ is closed to new replies.