Display a larger title

70 views
Skip to first unread message

Paul Randall

unread,
Jun 9, 2009, 9:07:28 AM6/9/09
to fancybox
I would really like to be able to put more text in the *fancy_title*
so that it would allow a paragraph or two. The image currently only
displays 1 line. Would it be possible to have a div/table/element that
allowed more than 1 line of text?

mofle

unread,
Jun 26, 2009, 6:23:26 AM6/26/09
to fancybox
Bump

andrnag

unread,
Jun 28, 2009, 7:08:31 AM6/28/09
to fancybox
I also need this functionality. It's very useful to display large
title string on sites. And I wish fancybox to dynamicaly change
fancybox_title size.

OmEr

unread,
Jul 21, 2009, 7:12:10 AM7/21/09
to fancybox
I also need this functionality. Is there anyone that handles this
problem?

JFK

unread,
Jul 21, 2009, 6:14:51 PM7/21/09
to fancybox
there is a workaround (for a square title)
after you have loaded your fancybox.css file, below the <link
rel="stylesheet" ... add:

<style type="text/css" media="screen" >
td#fancy_title_left,
td#fancy_title_right,
td#fancy_title_main {background: #000 url();}

div#fancy_outer {overflow: visible;}
div#fancy_title {bottom: -53px; }
div#fancy_title div {color: #fff; background: #000;}
</style>

the problem here is that it will work when you have the SAME amount of
lines in ALL title, otherwise the title will be either overlapping the
picture or it will be far below of it (my example works nice to me for
a 3 line title)

you can eventually play with these values:
if you need more lines, increase the value of bottom: in
div#fancy_title to something like -63px or vice verse.
Additionally you could play with the size of the font within -
div#fancy_title div - like:
div#fancy_title div {color: #000; background: #fff; font-size: 10px;}
so you would reduce the amount of lines with a smaller font
play also with the background/foreground colors to fit your needs but
it may look far different from the original 'fancy' fancybox concept

Optionally add:
div#fancy_inner {border: none;}
so the title will look aligned with the picture
Reply all
Reply to author
Forward
0 new messages