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

Unable to round corners in a table #64

Closed
paranoid-android opened this issue Oct 29, 2015 · 2 comments
Closed

Unable to round corners in a table #64

paranoid-android opened this issue Oct 29, 2015 · 2 comments

Comments

@paranoid-android
Copy link

Hello,

I have a table defined like this:


<div style="padding:1rem;">
  <p>
    A description of the contents of the table goes here. 
    This paragraph takes up a couple of lines of space.
  </p>
  <br />
  <table class="table-striped" >
    <thead>
      <tr>
        <th>First Name</th>
        <th>Last Name</th>
      </tr>
    </thead>

    <tbody>
      <tr>
        <td>Bill</td>
        <td>Jones</td>
      </tr>

      <tr>
        <td>Alex</td>
        <td>Johnson</td>
      </tr>

      <tr>
        <td>Jill</td>
        <td>Rodriguez</td>
      </tr>
    </tbody>
  </table>
</div>

The documentation shows two different table layouts:

  1. A version that does not have rounded corners as shown on the home page.
  2. A version that has rounded corners as shown in the "Tables" section of the components page.

The code above displays the version of a table without rounded corners. However, I want to display a table in my page that has rounded corners. As the code above shows, I have a 1rem padding. That's why I want the table border with rounded corners. Its unclear how to do this. I'm not sure if the rounded corners come from the window or the pane. If its the window, its not currently possible to nest a table with rounded corners in the middle of a page.

How can I display the table with the border and rounded corners shown in the "Tables" section of the components page?

@goodseller
Copy link

I believe you need this:
http://jsfiddle.net/mzcmyec4/3/

Add the following to your script:

.component {
    border: 1px solid #BEBEBE;
    border-radius: 6px;
}
...
<div class="window-content component">
  <table>
   ...
  </table>
</div>
...

@paranoid-android
Copy link
Author

@goodseller Thank you so much! The addition of component cleared it right up for me.

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

No branches or pull requests

2 participants