HighDots Forums  

Table Caption Issue

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Table Caption Issue in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jacob Jamin
 
Posts: n/a

Default Table Caption Issue - 07-10-2008 , 10:59 PM






I used the Insert Table feature, defined my table and added the caption. It
looks fine in Design View but when saved and previewed in a browser the
caption only spans the Header Column and not the entire table. Any ideas?


Reply With Quote
  #2  
Old   
Walt F. Schaefer
 
Posts: n/a

Default Re: Table Caption Issue - 07-10-2008 , 11:58 PM






Quote:
Any ideas?
Sure. Post a link to the page so we can see what the code looks like. Right
now it's like someone writing and saying they baked a cake and it didn't
taste good. Then asking how to fix it. Where's the cake?

--

Walt


"Jacob Jamin" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
I used the Insert Table feature, defined my table and added the caption. It
looks fine in Design View but when saved and previewed in a browser the
caption only spans the Header Column and not the entire table. Any ideas?




Reply With Quote
  #3  
Old   
Jacob Jamin
 
Posts: n/a

Default Re: Table Caption Issue - 07-11-2008 , 12:09 AM



It's not actually online yet, I'm still building the site. What should I do?


Reply With Quote
  #4  
Old   
Jacob Jamin
 
Posts: n/a

Default Re: Table Caption Issue - 07-11-2008 , 03:37 AM



Here's the code for the table:

<table width="600" border="0" align="center">
<caption>
Directional Sensor Accuracy (0? to 90?)
</caption>
<tr bgcolor="#CCCCCC">
<th width="50%" scope="row">Inclination</th>
<td>?0.1?</td>
</tr>
<tr bgcolor="#999999">
<th width="50%" scope="row">Azimuth</th>
<td>?0.1?</td>
</tr>
<tr bgcolor="#CCCCCC">
<th width="50%" scope="row">Toolface</th>
<td>?0.1?</td>
</tr>
</table>

And here's the code from the CSS File, I'm not sure which is causing the
issue. (this part is not finished yet)

table {
font: normal normal 14px/1.25em Arial, Helvetica, Sans-serif;
text-align: center;
}

th {
font-weight: normal;
font-style: normal;
text-decoration: none;
}

tr {
height: 2em;
}

td {

}

tbody tr.odd td {
background: transparent url(images/bg_w_trans.png) repeat top left;
}

caption {
display: block;
background-color: #0079c2;
color: #FFF;
font-weight: normal;
font-style: normal;
}






Reply With Quote
  #5  
Old   
Jacob Jamin
 
Posts: n/a

Default Re: Table Caption Issue - 07-11-2008 , 09:21 AM



Thank You!

It's the display:block; that is doing it - not sure why -
what was the reason giving it this ?
--

~Malcolm~*...

"The simple answer is "a little bit of knowledge is a dangerous thing" I
wanted to put a background color behind it and assumed it needed the
display:block setting to achieve that as opposed to just the background-color:
#0079c2.

Thanks again!


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.