Blockquote & Validation Issue
Okay I know that you aren't supposed to put block level elements inside other block level elements.
Here's the issue:
I'm wanting to do the whole 'pullquote look' sort of like it looks here when you quote something from a post.
I have done that by styling the blockquote in the css file.
The problem is that my blog uses PMachine which automatically puts the paragraph tags in, so my blockquote gets wrapped between the p tags which makes the page not validate.
Is there any way around this?
Just for ha has I tried doing this:
I put the blockquote between object tags.
That validates just fine and works correctly in Firefox, but it causes the text inside the blockquote not to show up in IE7.
Roo
Megan posted this at 14:35 — 6th March 2008.
She has: 11,421 posts
Joined: Jun 1999
Is there a way to get Pmachine to stop doing that? Maybe by switching to a different posting mode? I know in wordpress you can turn the WYSIWYG editor off. In drupal here there are several input formats to choose from (not sure if you see those as regular members).
To be honest, though, I wouldn't obsess over it not validating too much. It's not the end of the world if it doesn't validate. Doing the pull quote would trump keeping it valid IMO. Did you try putting a div around it?
But, it would be better if pMachine didn't do this because this isn't the only situation where you'd want to put in something that's not a paragraph. What if you put in a table, would it wrap that in tags? Report it as a bug if you can.
Megan
Connect with us on Facebook!
JeevesBond posted this at 13:57 — 12th March 2008.
He has: 3,956 posts
Joined: Jun 2002
Megan's right, if the bloomin' blog software works a certain way and you can't change it then there's no point worrying. It's not a huge error and probably doesn't cause any issues in browsers.
Isn't Pmachine commercial software? They should certainly have support channels where you can go and ask about this sort of thing.
a Padded Cell our articles site!
Roo posted this at 00:10 — 16th March 2008.
She has: 840 posts
Joined: Apr 1999
Geez what a bonehead. I forgot that I set up my templates to wrap the message body in p tags so I would not have to type them in every time. So I could remove them from the template, but then I'd need to go and re-edit every post.
I don't have the need to use a pull quote very often so I suppose I might be able to live with a few pages not validating. In the meantime I simply made a new class that that has the background image in it. not exactly what I wanted but is okay for now.
pMachine is old and was/is free, they have since moved to Expression Engine.
Roo
JeevesBond posted this at 20:42 — 21st March 2008.
He has: 3,956 posts
Joined: Jun 2002
Ahhh, thanks for the update. I didn't know that.
webwiz posted this at 05:54 — 18th March 2008.
He has: 629 posts
Joined: May 2007
I'd say that you are making your pull quote in exactly the right way. Using blockquote for a pull quote seems wrong to me.
I suppose if you were to split hairs, you could argue for using the Q tag (inside a DIV or ?), but since browser support is not good for Q, a classed P element sounds the way to go.
Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.