foundation / foundation-sites

The most advanced responsive front-end framework in the world. Quickly create prototypes and production code for sites that work on any kind of device.
https://get.foundation
MIT License
29.66k stars 5.49k forks source link

Img wrapped with 'a' + caption #173

Closed srbower closed 12 years ago

srbower commented 12 years ago

It seems that you can either have an image wrapped in an anchor OR a caption with an html link. Am I missing something or is this true. And if so is there simple way to modify to include this?

The requirements for the project I am working on state that the site banner must be clickable along with a styleable link button.

smileyj68 commented 12 years ago

Do you mean in general or in Orbit?

chadsterBAM commented 12 years ago

@srbower You can do this within Orbit. Just apply the 'a' wrapped image within the

element in your orbit container.

chadsterBAM commented 12 years ago

I've taken orbit even further on some sites allowing many things within each container. I have found that orbit doesn't allow (easily) an unordered list to be used as it's container, which would be nice for accessibility reasons.

srbower commented 12 years ago

I am using the demo page to play around with orbit. I have three items, two have a tags wrapping the image and the related data-caption="#captionNumberOneEtc..."These items do not show the captions. The third item is an image with no wrapping a tag, same type of caption reference and the caption displays. Am I just missing something?

srbower commented 12 years ago
smileyj68 commented 12 years ago

I believe newer versions of Orbit correct this, but can't be sure. Closing it unless this is still an issue, then I'll reopen and tag it.