Blockquotes and Q
Posted April 17th, 2003 @ 07:23pm by Erik J. Barzeski
I'm just testing some things out - apologies to those that will see this in their news aggies several time as I play around. As you'll notice two of these - the two that look like I want them to look - are not valid XHTML 1.1. Anyone know how to fix them so that they are?
A few years ago - nearly two as I write this - I signed up with a company called "HostPro" for what was then called a "Freedom" account. The Freedom account provided 500 MB disk space, root access, 40 virtual hosts, and more on a FreeBSD "box" that I could essentially consider a dedicated - though small - server.
I think I've figured it out… See comments.
Posted 17 Apr 2003 at 9:06pm #
Trying using div instead of span. The latter is an inline element, the former is a block element. You need a block element to indent the whole block of text. Using "p" works because it's a block element.
Posted 17 Apr 2003 at 9:15pm #
The problem there is that div doesn't validate inside a p tag. as in <p><div...>
MT adds p tags around them, I can't get around that. 🙁
Posted 17 Apr 2003 at 9:19pm #
Actually, it doesn't seem to put them around <blockquote>d things… But for some reason that doesn't validate. Researching a little now.
Posted 17 Apr 2003 at 10:13pm #
Okay, hmmm. How about using span but adding "display: block;" to the class declaration?
Posted 17 Apr 2003 at 10:43pm #
I did as Scott suggested. Instead of doing <blockquote><p></p></blockquote> every time, I have an MTMacro that expands <bq> to <span class="blockquote"> and </bq> to </span>. The style sheet for the .blockquote class is as follows:
{
display: block;
font-size: x-small;
font-family: verdana, arial, sans-serif;
color: #666;
line-height: 110%;
margin: 0px 25px 0px 25px;
}
Posted 20 Apr 2003 at 10:56am #
Another option is to add in a closing paragraph tag the start of the paragraph (to close the paragraph tag that MT adds in) and then to add a paragraph tag at the end of the paragraph to go with the closing paragraph tag that MT puts in.
This method validates and displays fine in Mozilla and only adds an extra line break in IE.