Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Tables in txp

#1 2006-02-08 12:08:51

((slimey))
Member
Registered: 2005-06-25
Posts: 26

Tables in txp

Ok i got my head around tables and how to create them, but ive got a problem.
For some reason when i create the table it ignors my css totally an just uses its own.
Font size is totally out its weird. can anyone shed some light on my problem.

Heres the code im using

“table{border:1px solid black;width:500px}.
{background:#EEEEEE}. |_. Date|_. Time|_. Team|
=. |test|test|test|
=. | test|test|test|”

Click for problem

and here is what the text should look like.

Click here

Last edited by ((slimey)) (2006-02-08 12:14:05)

Offline

#2 2006-02-08 17:15:58

1beb
Plugin Author
From: Canada, Ontario, Toronto
Registered: 2004-11-22
Posts: 169
Website

Re: Tables in txp

Sometimes, I find wraping elements in an identified div works wonders for styling specific elements. Especially when I find that some code is hard to work out through textile.

ie.

<code>
<div id=“event-table”>
YOUR TABLE HERE
</div>
</code>

<code>
CSS
#event-table table{border:1px solid #000; width:500px; background:#EEE;}
#event-table tr{blah}
#event-table td{blah}
#event-table th{blah}
</code>

Last edited by 1beb (2006-02-08 17:18:11)

Offline

#3 2006-02-09 05:02:07

((slimey))
Member
Registered: 2005-06-25
Posts: 26

Re: Tables in txp

Thanx haps that has done the job, its funny how the simplest answer can be the heardest to work out on your own, i always think having fresh eyes look at sumthing is the best course of action

Offline

  1. Index
  2. » Archives
  3. » Tables in txp

Board footer

Powered by FluxBB