Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kainjow

Moderator emeritus
Original poster
Jun 15, 2000
7,958
7
There is an extra line showing up when using [code]...[/code]. Same happens with [php]...[/php].

Code:
This is code.

PHP:
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

Administrator
Staff member
Sep 19, 2002
39,782
7,514
Los Angeles
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.