Hi everybody,
I need to put a simple table in my blog, but it doesn't show the border and it doesn't behave the way I want. Why is it so hard to make a basic piece of HTML work on a Posterous blog?
I have something like:
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td>Text</td>
<td>Text</td>
</tr>
<tr>
<td>Text</td>
<td>Text</td>
</tr>
</table>
...and it doesn't show me any border. How can I put a nice border and define a border color? I just need a little help from you. Thanks,
Ricardo
http://placerdigital.net
Page 1 of 1
How to use tables!? Not a single tip on the web about it
#2
Posted 27 April 2011 - 06:10 PM
Because nobody uses table borders like that anymore.
Do this instead:
Do this instead:
<table {yada yada} style="border:solid 1px #000;">
#3
Posted 29 April 2011 - 06:03 AM
Thank you, Cory. Anyways it doesn't work:
This is the article and this is the table.
Does it have to do with the styles of the theme I am using? Furthermore, I want to style the whole table, not just put a border. How can I do that in Posterous? Do I have to create a style in the .css file? Maybe that's the only way to do that?
Thanks!
This is the article and this is the table.
Does it have to do with the styles of the theme I am using? Furthermore, I want to style the whole table, not just put a border. How can I do that in Posterous? Do I have to create a style in the .css file? Maybe that's the only way to do that?
Thanks!
#4
Posted 29 April 2011 - 04:25 PM
Since you can't attach a class to an element in a post, you're going to have to blanket all tables within posts with the same CSS. Something like this:
But you should segment to only work inside your posts. Something like .post table and .post td
table {
border-top:solid 1px #000;
border-left:solid 1px #000;
}
td {
border-right:solid 1px #000;
border-bottom:solid 1px #000;
padding:5px;
}
But you should segment to only work inside your posts. Something like .post table and .post td
Share this topic:
Page 1 of 1

Help












