Fix for Facebox CSS and YUI Base CSS

0 views
Skip to first unread message

Tom Davies

unread,
May 5, 2008, 9:08:33 AM5/5/08
to facebox
Facebox 1.1 does not display properly if you are also using the YUI
Base CSS (http://developer.yahoo.com/yui/base/). None of the corners
line up.

The good news is the fix is simple so I wanted to post it here in case
others experience this issue. Just add this CSS rule to your
facebox.css:

#facebox td {
padding: 0;
}

And make sure your facebox.css is loaded after the YUI base.

Any chance of rolling this CSS fix into the facebox proper?

Thanks,
Tom

Chris Wanstrath

unread,
May 5, 2008, 1:18:19 PM5/5/08
to fac...@googlegroups.com
This fix is already in Facebox's Git repo. I'll push out 1.2 today.

Thanks!

- Chris

--
Chris Wanstrath
http://github.com/defunkt

Tom Davies

unread,
May 5, 2008, 2:25:45 PM5/5/08
to facebox
Excellent. I just looked through the commit logs for facebox and the
dynamic width feature looks nice and will come in handy.

Also it looks like the jQuery plugin page for facebox hasn't been
updated since 1.0: http://plugins.jquery.com/project/facebox

Thanks for the great plugin.

Tom
Reply all
Reply to author
Forward
0 new messages