Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for table captions? #23

Open
dotherightthing opened this issue Aug 28, 2013 · 1 comment
Open

Support for table captions? #23

dotherightthing opened this issue Aug 28, 2013 · 1 comment

Comments

@dotherightthing
Copy link

Hi,

We're using Zurb Responsive Tables standalone on a non-Foundation site.

The client has supplied some content which includes table captions.

I've tested this with Zurb Responsive Tables, and, in the mobile view, the caption splits into two table headers which is a bit strange. I'd prefer it to stay above the table, which is the default layout for the caption element.

Here's the relevant subset of our table markup:

<table class="responsive">
  <caption>Table caption</caption>
  <thead>
    <tr>
      <th scope="col">Header 1</th>
      <th scope="col">Header 2</th>
      <th scope="col">Header 3</th>
      <th scope="col">Header 4</th>
      <th scope="col">Header 5</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>1</td>
      <td>-</td>
      <td>3</td>
      <td>4</td>
      <td>5</td>
    </tr>
  </tbody>
</table>

Thanks,
Dan

@Elyasin
Copy link

Elyasin commented Mar 9, 2015

+1 - I ran into the same.

I assign "hide-for-small-only" class to the caption, so that it won't display on small screens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants