Extra line when using [code]...[/code]

Discussion in 'Site and Forum Feedback' started by kainjow, Mar 10, 2008.

  1. kainjow Moderator emeritus


    Jun 15, 2000
    There is an extra line showing up when using [code]...[/code]. Same happens with [php]...[/php].

    This is code.
    This is php.
    Quotes seem to work fine though:

    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.
  2. Doctor Q Administrator

    Doctor Q

    Staff Member

    Sep 19, 2002
    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.

Share This Page