Activity › Forums › Web Design (WordPress, Joomla, etc.) › CSS Tables
-
CSS Tables
Posted by Jeff Kelley on July 11, 2008 at 2:16 pmForget about my post below. I am using tables to get the desired effect, which seems to work well.
Is there any way to make the frames a exact size, rather that dependent on the text? So if I use the same table over and over, the spacing will be the same.
Thanks
Sapphire Parker replied 17 years, 9 months ago 3 Members · 7 Replies -
7 Replies
-
Curtis Thompson
July 11, 2008 at 6:47 pmhello…
you can add width attributes to table cells – would that be what is missing?
if not, please post an example and we can take a look…
sitruc
-
Jeff Kelley
July 24, 2008 at 4:33 pmHi Curtis,
Here is what I have. I just copied this code of a website that have examples of tables but am having trouble understanding them.
Here is the css

and the html

Sorry it’s been such a long delay.
-
Curtis Thompson
July 25, 2008 at 10:39 pmhello…
sorry – confused…does what you have here not work or it works and you just want to understand it?
sitruc
-
Jeff Kelley
July 28, 2008 at 4:49 pmRight now the size of the boxes vary to the size of the text. Can I add an absolute position to a table? See, it gets used over and over and I want it to be consistent each time, not dependent on the length of the text.
-
Curtis Thompson
July 28, 2008 at 4:55 pmhello…
you can do this via css or you can just use table cell attributes too – for example:
<table width=”600″ cellpadding=”0″ cellspacing=”0″ border=”0″>
<tr>
<td width=”400″ align=”left” valign=”top”>foo</td>
<td width=”200″ align=”left” valign=”top”>bar</td>
</tr>
</table>and then your content will wrap to that width unless it’s a fixed string with no spaces in it…
have you tried that way as well?
sitruc
-
Jeff Kelley
July 28, 2008 at 5:30 pm -
Sapphire Parker
August 4, 2008 at 2:27 pmYou can specify fixed width to cells on first row. Which will keep the table same in spite of the text inside varying.
Cheers,
SP
https://www.videoediting-direct.co.uk
Reply to this Discussion! Login or Sign Up