Decision
In fact, you can achieve what you want without the border-image property by setting the following:
table { background-image: linear-gradient(to bottom, red 0%, blue 100%); background-origin: border-box; border-spacing: 5px; border: 5px solid transparent; }
Browser Support:
Description
In essence, we are doing the following:
- Add
linear-gradient as the background table. - Set the background source so that it starts with the
border-box table. (For more on background-origin see my answer here ). - Separate the border between the table cells and the rows ( by default ) so that the
background from the table is visible through the gap between them. - Add an extra transparent
border to your table. This is optional and only required because the border of the table in your image seems thicker than the border between cells.
table { background-image: linear-gradient(to bottom, red 0%, blue 100%); background-origin: border-box; border-spacing: 5px; border: 5px solid transparent; } body { background-color: #eee; } table { width: 500px; } td { background: white; }
<script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script> <table class="tablagradiente" align="center" width="41%"> <tr> <td><p>Sesiones Ordinarias</p></td> <td><p>Sesiones Extraordinarias</p></td> </tr> <tr> <td><p> </p></td> <td><p>Primera Sesión Extraordinaria 2015</p></td> </tr> <tr> <td><p> </p></td> <td><p>Primera Sesión Extraordinaria 2015</p></td> </tr> <tr> <td><p> </p></td> <td><p>Primera Sesión Extraordinaria 2015</p></td> </tr> </table>
Note: I used a red-blue gradient in the response to make the effect more visible to the eyes.

source share