
Originally Posted by
deathshadow60
Who on earth recommended a DL for a PM page?!?
As to why it's not working, you should know the drill by now -- without seeing everything else on the page we can't help you -- in particular the CSS without the markup it's applied to is gibberish. Without seeing what it is you have for markup and content, I can't weigh in on if a DL is the right markup, or why your CSS isn't working.
I don't remember "who", but it seems like a reasonable approach when the data we are talking about would look like this...
Code:
PRIVATE MESSAGE
FROM: DoubleDee
TO: Suzy Q
DATE: Saturday, May 19, 2012 Saturday, May 19, 2012
RE: My Start-up
I decided to start my own business because I want
to be my own boss!
My boss is a jerk and never appreciates anything
that I do for him, so why put up with the abuse?!
He takes me for granted and doesn't appreciate
all of my talents.
Here is a larger snippet of my code... (Go light on the echo comments, as I know you don't like my style. Besides, this is my first swing at things...)
PHP Code:
echo "<dl>
<dt>FROM:</dt>
<dd>$fromData</dd>
<dt>TO:</dt>
<dd>$toData</dd>
<dt>DATE:</dt>
<dd>" . htmlentities($msgDate, ENT_QUOTES)
. " "
. htmlentities($msgDate, ENT_QUOTES)
. "</dd>
<dt>SUBJECT:</dt>
<dd><b>" . htmlentities($subject, ENT_QUOTES) . "</b></dd>\n\n";
// Build Message.
$messageEnt = (isset($body) ? htmlentities($body, ENT_QUOTES) : '');
echo " <dt></dt>
<dd id='msgBody>'" . nl2p($messageEnt, TRUE) . "</dd>
</dl>\n\n";
Here are the related styles...
Code:
#viewPM dd{
padding: 0 0 0.5em 0;
}
#viewPM dd#msgBody{
border: 10px solid #AAA;
}
(There is obviously A LOT more code, but I can't see how it would apply here...)
The only thing I can think of, is that maybe you cannot style a <dd> like I am trying? (I know I go crazy trying to remember what you can and cannot style on Table elements...)
Sincerely,
Debbie
P.S. I know the <DL> code I have I stole from somewhere else in my code-base, and it came from Mr. Paul O' Not sure what I used it for before, but it was probably something pretty close to this context...
Bookmarks