I have a table and set the cell width in pixels. when i enter text is stretches the width. how can i fix the width of the cell so it will take text and keep same width?
@jdaviaMar 20.2003 — #[i]Originally posted by Richcoleuk [/i]
[B]I have a table and set the cell width in pixels. when i enter text is stretches the width. how can i fix the width of the cell so it will take text and keep same width? [/B][/QUOTE] Add a width to the cells.
You could use a standard font tag right at the beginning, then close it right at the end or you could use the BASEFONT tag, e.g.
<BASEFONT face="Verdana,Arial" size="2">
This tag can go in the HEAD or at the beginning of a document right after the BODY tag.
Table cell resizing - you have set a pixel width for a cell but the cell resizes when you enter text:
If you are using a web editor e.g. Dreamweaver check that the 'No Wrap' box in unticked for that cell.
Also, if you are specifying a narrow cell width check for long words in the text. A long word will force the cell width. You can reduce the font size, set a wider cell width in pixels or split the word with a hyphen if possible.
@NedalsMar 21.2003 — #....set the cell width in pixels. when i enter text is stretches the width.[/quote]If you set the cell widths in, say, row 1 and the put text in row 4, the text will cause the cell to expand. To solve this, you need to specify the cell width for the specific <td> cell that contains the text. ...set the font for the entire page...[/quote] You should really use CSS for that.
body { font:8pt Tahoma,sans-serif }
td { font:8pt Tahoma,sans-serif }
b { font-weight:bold }
I assume you mean 8pt not size="8" (HTML max = '7'). Size '7' is probably 36pt. The additional CSS items are there for Netscape (if you care)