[IPython-User] in ipython notebook, possible to create a table without a border?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[IPython-User] in ipython notebook, possible to create a table without a border?

Phillip M. Feldman
Whenever I create a table in the ipython notebook, a black border is drawn around it.  I would like to be able to eliminate this border, but <table border="0"> has no effect.  Any suggestions will be appreciated.

Phillip M. Feldman

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: in ipython notebook, possible to create a table without a border?

Zoltán Vörös-2
Hi Phillip,

You could set the border in CSS as


<table style="border: none">

or something similar.

I hope this helps,

Zoltán

On 12/01/2014 06:27 AM, Phillip Feldman wrote:

> Whenever I create a table in the ipython notebook, a black border is
> drawn around it.  I would like to be able to eliminate this border,
> but <table border="0"> has no effect.  Any suggestions will be
> appreciated.
>
> Phillip M. Feldman
>
>
> _______________________________________________
> IPython-User mailing list
> [hidden email]
> http://mail.scipy.org/mailman/listinfo/ipython-user

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: in ipython notebook, possible to create a table without a border?

Phillip M. Feldman
Hello Zoltan,

My html/css (see below) now uses "border: none", but I'm still getting the border around the outside of the table and between the two cells.

Phillip

<table style="border: none"><tr>
<td>Although the ancient Babylonians and Egyptians did not have algebra, let alone calculus or computers, we know from such texts as the 18th-century BCE Egyptian Rhind Papyrus that they were able to solve&mdash;at least approximately&mdash;some problems that would today be solved using either calculus or iterative numerical methods.</td>
<td><img src="hieroglyphics.png" width="240"></td>
</tr></table>

On Sun, Nov 30, 2014 at 10:39 PM, Zoltán Vörös <[hidden email]> wrote:
Hi Phillip,

You could set the border in CSS as


<table style="border: none">

or something similar.

I hope this helps,

Zoltán

On 12/01/2014 06:27 AM, Phillip Feldman wrote:
> Whenever I create a table in the ipython notebook, a black border is
> drawn around it.  I would like to be able to eliminate this border,
> but <table border="0"> has no effect.  Any suggestions will be
> appreciated.
>
> Phillip M. Feldman
>
>
> _______________________________________________
> IPython-User mailing list
> [hidden email]
> http://mail.scipy.org/mailman/listinfo/ipython-user

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user


_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: in ipython notebook, possible to create a table without a border?

Andrew Payne

My html/css (see below) now uses "border: none", but I'm still getting the border around the outside of the table and between the two cells.

Phillip

<table style="border: none"><tr>
<td>Although the ancient Babylonians and Egyptians did not have algebra, let alone calculus or computers, we know from such texts as the 18th-century BCE Egyptian Rhind Papyrus that they were able to solve&mdash;at least approximately&mdash;some problems that would today be solved using either calculus or iterative numerical methods.</td>
<td><img src="hieroglyphics.png" width="240"></td>
</tr></table>

Most browsers have a way to inspect the elements to figure out where styles are coming from.  For example, in Chrome, you can right-click on a table and choose "Inspect element".  If you look at Styles, and select "show inherited properties", you can find the CSS source/origin for everything on a Web page.

Looking at your table example, the borders are coming from the <tr> and <td> elements.  If you add style="border:none" to those items, the borders will go away.  If you inspect the element (as above), you can see exactly how the CSS is configured for those items, and how you could override them so that you don't need to style individual <tr> and <td> elements.

-andy

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user
Reply | Threaded
Open this post in threaded view
|

Re: in ipython notebook, possible to create a table without a border?

Phillip M. Feldman
That's great.  Thanks!

On Mon, Dec 1, 2014 at 12:33 PM, Andrew Payne <[hidden email]> wrote:

My html/css (see below) now uses "border: none", but I'm still getting the border around the outside of the table and between the two cells.

Phillip

<table style="border: none"><tr>
<td>Although the ancient Babylonians and Egyptians did not have algebra, let alone calculus or computers, we know from such texts as the 18th-century BCE Egyptian Rhind Papyrus that they were able to solve&mdash;at least approximately&mdash;some problems that would today be solved using either calculus or iterative numerical methods.</td>
<td><img src="hieroglyphics.png" width="240"></td>
</tr></table>

Most browsers have a way to inspect the elements to figure out where styles are coming from.  For example, in Chrome, you can right-click on a table and choose "Inspect element".  If you look at Styles, and select "show inherited properties", you can find the CSS source/origin for everything on a Web page.

Looking at your table example, the borders are coming from the <tr> and <td> elements.  If you add style="border:none" to those items, the borders will go away.  If you inspect the element (as above), you can see exactly how the CSS is configured for those items, and how you could override them so that you don't need to style individual <tr> and <td> elements.

-andy

_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user



_______________________________________________
IPython-User mailing list
[hidden email]
http://mail.scipy.org/mailman/listinfo/ipython-user