Code, Quotes, Attachments, CSS max-height

  • joebert
  • Weathered
  • Genius
  • User avatar
  • Joined: Feb 10, 2004
  • Posts: 11872
  • Loc: Clearwater, FL
  • Status: Offline

Post October 31st, 2009, 12:17 pm

The code bbcode has a max-height, quotes and attachments don't.
It is nice having a max-height applied to quote blocks, attachments, not so much.

I've added a max-height for quotes in my user.css

CSS Code: [ Download ] [ Select ]
.quoteBody
{
   max-height:12em;
}
  1. .quoteBody
  2. {
  3.    max-height:12em;
  4. }


But this is also being applied to attachments since they share the same "quoteBody" CSS class. So if I shrink quote blocks I end up shrinking attachment blocks too.

I've looked at the two codes for a bit, and I can't find anything I can use to differentiate between the two CSS-wise. I can however target only quoteBody classed elements that do not have an <img> childNode with Javascript.

Since I imagine I'm not the only one who likes short quote blocks, I figured I'd bring this up before I modify user.js and forget about it. :D
Why yes, yes I am.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post October 31st, 2009, 12:17 pm

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 9 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.