Posterize.us: How to use tables!? - Posterize.us

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to use tables!? Not a single tip on the web about it

#1 User is offline   Chuqui 

  • Member
  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 26-April 10
  • LocationSantiago, Chile
  • Posterous URL:http://placerdigital.net

  Posted 27 April 2011 - 12:36 PM

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
Posterous: PlacerDigital
Twitter: @Chuqui
0

#2 User is offline   Cory Watilo 

  • Advanced Member
  • Group: Administrators
  • Posts: 272
  • Joined: 30-September 09
  • LocationOrange County, CA
  • Posterous URL:http://watilo.com

Posted 27 April 2011 - 06:10 PM

Because nobody uses table borders like that anymore.

Do this instead:

<table {yada yada} style="border:solid 1px #000;">

Cory Watilo
My Posterous: http://watilo.com
Twitter: http://twitter.com/corywatilo
0

#3 User is offline   Chuqui 

  • Member
  • PipPip
  • Group: Members
  • Posts: 12
  • Joined: 26-April 10
  • LocationSantiago, Chile
  • Posterous URL:http://placerdigital.net

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!
Posterous: PlacerDigital
Twitter: @Chuqui
0

#4 User is offline   Cory Watilo 

  • Advanced Member
  • Group: Administrators
  • Posts: 272
  • Joined: 30-September 09
  • LocationOrange County, CA
  • Posterous URL:http://watilo.com

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:

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
Cory Watilo
My Posterous: http://watilo.com
Twitter: http://twitter.com/corywatilo
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users