20100519 Header fonts suddenly went whacky
All of a sudden, two fields designated <h2> in the right banner area started displaying extra large. Hmm. Code checked out OK on each of them, but they were displaying too large for the area, truncating off the right side. A quick review with Firebug (you did load that, didn't you?) showed that the tags for the fields included the added tag <big>, but the source view of the page did not show that. Instead, the front page teaser for a recently posted article included a <big> tag with no matching </big> tag, because Drupal had chosen to break the article at that point, leaving the <big> tag open for the rest of the page construction.
Boo-hiss. Bad Drupal.
Well, there is a trick to be invoked here: inserting a teaser break FORCE (see the Tips article on Teaser Control). A quick edit of the offending article, and all is well.
Here's lesson 1: when editing, do try to keep the font enhancements for last, lest you accidently delete a trailing tag without knowing it. Not the case here, but it can happen.
Lesson 2: Be sure you check the REST of the page before you call your recent construction good. In this case, viewing the Home page after promoting the article would have revealed the problem.
Lesson 3: Use "<!--break-->" when you need to.
- Printer-friendly version
- Login or register to post comments

