View Full Version : <caption> tag in tables...


Monkey Bizzle
12-29-2004, 09:39 PM
I am trying to tweek the calendar for Wordpress but it is very difficult. The calendar is included via a PHP function and I managed to find the bit, well, lot of code that the function calls on. Here is the first part of the code (minus all the php mumbo jumbo...)

<table id="wp-calendar">
<caption>This is where the month goes</caption>
<thead>
<tr>
....

I am trying to get a border around the calendar so in the CSS, I put the border: code under #wp-calendar but it put a border around everything but the month. I don't understand this as the caption/month is INSIDE the table tag so shouldn't that have a border as well??

pb&j
12-30-2004, 06:49 AM
thats kinda the weird thing with caption, even though it is inside the table tag area, it appears outside of the table visually. kinda like css relative positioning or something.

sorry, the only fix to that would be to have the month be a new row instead of caption.

Monkey Bizzle
12-30-2004, 03:54 PM
that's cool that i have to make it a new row. i just didn't wanna change it and then it be all messed up.

what is <thead>?

kittycat
12-30-2004, 04:04 PM
It groups together rows that are meant to be the 'header' of the table
http://www.w3schools.com/tags/tag_thead.asp

Monkey Bizzle
12-30-2004, 04:11 PM
thanks... just when i thought tables were getting easy, wordpress threw all these new tags at me!!