Subscribe to
Posts
Comments
NSLog(); Header Image

Blockquotes and Q

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.

6 Responses to "Blockquotes and Q"

  1. 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.

  2. 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. 🙁

  3. Actually, it doesn't seem to put them around <blockquote>d things… But for some reason that doesn't validate. Researching a little now.

  4. Okay, hmmm. How about using span but adding "display: block;" to the class declaration?

  5. 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;

    }

  6. 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.