On Jul 31, 2009, at 11:18 PM, Mr. Seth Dimbert wrote:
> If you visit my new site (http://is.gd/1W7IN) you will see a
> collection of image thumbnails created by a Wordpress plugin called
> Shashin (http://is.gd/1W7K5). Everything works great except that the
> "Next" link in the upper-right corner of the thumbnail set does not
> work in Safari on the Mac (v4.0.2), but it does in FF on the Mac and,
> I am told, other browsers on a PC.
>
> Both the plugin developer and I are stumped; can anyone make any
> recommendations?
first: a <caption> cannot contain block-level elements such as div.
The issue is that Safari 4 is not treating the <caption> as a block-
formatting context per CSS 2.1:9.4.1 [1], and hence does not contain
the floated block (the link 'next'). That is a bug in WebKit. The
floated block drops 'out' of the caption, visually. Add a background-
color to your caption to make this more visible.
Solution(s) ? Using the clearfix hack [2] should work. Using another
html construction may be another idea.
caption::after {content:'.'; visibility: hidden; clear:both;
display:block;}
[1] http://www.w3.org/TR/CSS21/visuren.html#block-formatting
[2] http://www.positioniseverything.net/easyclearing.html
Philippe
---
Philippe Wittenbergh
http://l-c-n.com/
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/