PDA

View Full Version : Extra line when using [code]...[/code]




kainjow
Mar 10, 2008, 09:56 PM
There is an extra line showing up when using .... Same happens with ....

This is code.

This is php.

Quotes seem to work fine though:

This is a quote.

I glanced through the HTML but nothing stuck out as an obvious fix. It seems like a problem with the <code> and <pre> elements.

Maybe a web guru can come up with a solution :)

Edit: seems like "height: 34px;" is the culprit. Removing it fixes it.



Doctor Q
Mar 11, 2008, 01:05 AM
You are correct. It's a bug in vBulletin. It sets the height to 18 + ( 16 x number-of-lines), and the 18 should be 0 or close to it. This affects code and php (a type of code) because it reserves space for the styled area, which it doesn't for quotes.