Styling Form Data in WP Post Editor

Yes, as you see, even the head and body tags can be removed. How much of this code is created by you?

<h3 style="text-align: center;"><span style="color: #008000;"><br />
Your iPhone is worth: $110<br />

Ideally we would still clean that up a bit. :slight_smile:

This is what I have styling the PHP output and linking the file itself:

<DIV style="position: absolute; top:250px; left:391px; width:200px; height:25px">
<h3 style="text-align: center;"><span style="color: #008000;">

All of that is created by me, and I’m pretty sure that the div line and h3 style line can be combined into one nice clean line but not sure how (if it is possible)

Hmm, rotten WP is still placing <p> tags around your div. If you want this stuff to appear above the form, it would be better to place the code there, if you can (instead of below it in the HTML), and then simply place something like this in the HTML:

<span class="result"> include('process_test1.php'); ?> </span>

and then place this in your style sheet:

.result {
  display: block; 
  width: 200px; 
  text-align: center; 
  color: #008000;
  font-size: 24px;

That way, you should get a simple <p> tag around your span and have the message placed where you need it.

The text-align center didn’t work in the CSS, however, I did find a plugin that disables the wpautop function (the function that adds the <p> tags) so that fixed the problem. Now I’ve just gotta go back and re-format my pages:rolleyes: